Web Languages and Standards

39K

Solutions

30K

Contributors

Web development can range from developing the simplest static single page of plain text to the most complex web-based internet applications, electronic businesses, and social network services using a wide variety of languages and standards, including the familiar HTML, JavaScript and jQuery, ASP and ASP.NET, PHP, ColdFusion, CSS, PHP, Flex and Flash, but also the implementation of a broad list of standards including XML, WSDL, SSDL, VoiceXML and many more.

Share tech news, updates, or what's on your mind.

Sign up to Post

Hi,

i am creating a chat function and i would like to know if it is possible for a user to click a list item and have it :
1) update the list class with "active"
2) get an id from within the li and put it into a form input
3) if the user clicks the list item again it removes the class and removes the value from the form
4) have the ability to click multiple list items

my HTML
<ul class="inbox" id="chat-inbox" tabindex="5002" style="overflow: hidden; outline: none;">
			  <li><input type="text" class="form-control" placeholder="Search..."></li>
			  <li><h5>Available Users</h5></li>
			  
			  <li>
				<a href="#" class="unread" id="msg" onclick="">  
				  <div class="media">
					<div class="pull-left">
					  <img class="media-object img-circle" src="//www.bushbrigade.com/profile/images/profile_pics/201308161747555930435525.jpg">
					</div>
					<div class="media-body">
					  <p class="media-heading">Blackout Menace 
					  	<span class="badge badge-greensea" id="msg_badge"></span> 
						<span class="time"></span>
					  </p>
					  <span class="message"></span>
					  
					</div>
				  </div>
				</a>
			  </li>
		  
			  <li>
				<a href="#" class="unread" id="msg" onclick="">  
				  <div class="media">
					<div class="pull-left">
					  <img class="media-object img-circle" src="//www.bushbrigade.com/profile/images/profile_pics/2013081313375222043321200.jpg">
					</div>
					<div class="media-body">
					  <p class="media-heading">Bush Munster 
	

Open in new window

0
I would like to know if it is possible to make fancybox draggable

I use this fancybox2 to open a new page to do something and when the user close the fancybox window it returns a value
this is the code:
<script type="text/javascript">
 var temporal;
 $(document).ready(function() 
 {&#9; 
$(".various").fancybox(
  {
   maxWidth : 800,   maxHeight   : 700,   fitToView   : false,
   width    : '70%', height      : '90%', autoSize : false,
   closeClick  : false,   openEffect  : 'fade',
   beforeClose : function()
   {
&#9; if($('.fancybox-iframe').contents().find('#lautor').val() != "")
&#9; { 
&#9;   document.getElementById('titulo').value = $('.fancybox-iframe').contents().find('#ltitulo').val(); 
&#9;   document.getElementById('autor').value = $('.fancybox-iframe').contents().find('#lautor').val(); 
           document.getElementById('lista').value = 1;
&#9; }
&#9; else { document.getElementById('lista').value = 0; }                  &#9;
   }
  });
 });
</script>

Open in new window

<a class="various fancybox.iframe" data-fancybox-type="iframe" style="text-decoration:none;" href="buscar.php">
               <input class="tabs" type="button" style="text-decoration:none;" value="Buscar"></a>

Open in new window


My code works without a problem, but yesterday I found this amazing pluging: http://jquery.diaz-cornen.com/fancybox/index_dragfancybox.html

I tried to integrate to my code but it only works when I use a previouse version of Fancybox and this is a problem because "beforeclose function" only works for me in fancybox2

I found also that jquery ui has a jquery ui draggable but i cannot found any example about how to use it with fancybox

Thats way I was wondering if it is possible to make fancybox2 draggable

best regards
0
Hello, I'm not sure I have the right category but here goes: I'm trying to integrate the "Stripe" payment processing platform (www.stripe.com) into my website in the most simple plain-vanilla way. I just need a simple "Buy" button on my site for customers to click on and submit their CC info. Stripe has some basic documentation on how to do this at:

https://stripe.com/docs/tutorials/checkout

But still, they assume the user is proficient at a web programming language (ie. PHP, Python, Perl, etc)... of which I am not. I know a little HTML, so I'm not completely useless, but nothing as far as PHP and such. As I communicated with Stripe support regarding this, they wouldn't offer much help and recommended I hire a programmer to do this. I really didn't think that was necessary as I only want to do a very very simple implementation of their system. If you look at the doc page I mentioned above, that part # 1 is certainly no problem. The part I get bogged down at is the next step:

https://stripe.com/docs/tutorials/charges

Here they give code samples in 4 languages (my web host uses PHP). My question is - *where* do I put this code sample on my web host? What filename do I give this, and what directory do I put the file in? That's really (I think...) all I need to know. Can someone help me with this?

Thanks!
    Shawn
0
Good morning

I am a total newbie, but have managed to write a small webb application that references a .mdb
The site reads the data and returns it to screen, I then have a page where i want to write the data back into the mdb file.

It works when testing from my local machine but once publish to the webserver i get an Error.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace:


[OleDbException (0x80004005): Operation must use an updateable query.]
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr) +1081708
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) +247
   System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) +194
   System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) +58
   System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +167
   System.Data.OleDb.OleDbCommand.ExecuteNonQuery() +113
   WebApplication13.About.Button1_Click(Object sender, EventArgs e) in c:\users\q.evans\documents\visual studio 2010\Projects\WebApplication13\WebApplication13\About.aspx.vb:24
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
   …
0
How to write this xpath::    xpath(".//*[@id='wrapper']/table[2]/tbody/tr[7]/td[3]/input[1]")

in a simple relative path, something like  xpath("//input[@id='wrapper'][1]") .... any suggestions ....
0
What are the most relevant certifications for JavaScript and HTML5 tracks?
0
Hi,

I am using paginate with a search box. It works fine until I use a drop down box to select values rather than use a textbox.
I cant get the selected value from a dropdown box to appear in the querystring.
So I just select a value in a textbox and then click search , i then get the values from a query string and do a paginate find.
However a dropdown list instead of a textbox isnt working.

I cant use Post for pagination requests.

controller

 
public function myindex5() {
      
         $this->set( 'filterSuburb',$this->Student->find('list', array('fields' => array('Student.address_suburb') )));
 
       $havefilter=false;       
              
        if (!empty($this->request->query['address_suburb'])) {
           
           $suburb=$this->request->query['address_suburb'];
           $havefilter=true; 
            
        }
        else $suburb='%';

          if ($havefilter) {
             
             
           $this->paginate = array(
                 'conditions'=>array('Student.address_suburb LIKE' => $suburb,'Student.last_name LIKE' => $lastname ),
                'limit' => 3,
                'order' => array('Student.id' => 'ASC','Student.first_name' => 'ASC'),
                'contain' => array('TutoringType','Referral')   
                );
          
                    
           $this->set('student',  $this->paginate());
          }
          $this->set('havefilter',  $havefilter);
       
    }

Open in new window

 

view
   
<?php
               // app/View/Locations/index.ctp
               
               
                echo $this->Form->create('Student', array('type' => 'get','url' => array('controller' => 'students', 'action' => 'myindex5' )));
               // echo $this->Form->input('address_suburb', array('label' => 'suburb'));
                 echo $this->Form->input('address_suburb', array('type' => 'select','options' => $filterSuburb));
               echo $this->Form->input('last_name', array('label' => 'last name'));
           
                echo $this->Form->end('Search');
                ?>

Open in new window

0
Hi There,

I'm pretty new to Accessibility and I was doing some testing using NVDA screen reader. I noticed that the heading on my page, even though they were semantic, they were not picked up by the screen reader. I tried various means of getting them to work but I couldn't get them to work at all until I added the tabindex="0" attribute to the element. I'm just wondering if it's ok to use this? Or is there some other way to solve the issue?

<header class="clearfix" id="banner" aria-labelledby="product-heading" tabindex="0">
      <section class="col-sm-6 col-xs-12">
            <h1 id="product-heading">this is my heading</h1>
            <h2>Application form</h2>
      </section>
      
</header>
0
Hi All,

I have a PHP site that displays reports from stored procedures in SQL. I use a dev to do the site work for me and after a change the site is not working.

The error that now comes up is

 Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in D:\inetpub\wwwroot\reporting\src\php\reports.php on line 331

Line 331 of reports.php reads.

report->DaysOverdue = '<span style="color: green;">'.$report->DaysOverdue-30.'</span>';

The dev added a function to remove 30 from the value of the results in this column. I suspect that's whats broken it but I can't get hold of him for a few days so any help would be appreciated.

Thanks

H
0
Hi,  I can use paginate as follows.
I cant understand why you need to use joins in paginate if the models are related in cakephp? Doesnt the join happen automatically?

In what case would I need to define a join in a paginate  for related models? You can even use the conditions clause (where) to specify what records to display in paginate. There need for a join statement has stumped me and the docs dont explain this

http://book.cakephp.org/2.0/en/core-libraries/components/pagination.html


$this->paginate = array(
        'limit' => 3,
        'order' => array('Student.id' => 'ASC','Student.first_name' => 'ASC'),
        'contain' => array('TutoringType','Referral')    
         );
      $this->set('students',  $this->paginate());
0
Greeting,

I have two dropdown boxes named Country and Region in asp and the values for those two boxes are populated from Oracle database. If boxes Country changes, the value of box Region also changes(re-query the database).

Please provide sample code.

Thanks.
0
We do a lot of advertising on Google adwords. We also get a lot of leads through Google organic search. We don't have straight up sales on our website. We collect leads (free trials) and then, the leads are passed on to our sales team.

They follow up with the leads and close the sales. I need a way to map revenue back to the keyword, ad group and campaign. Is this possible?

How do I do it?
0
Hello

Back to my menus.  Here is the development page development page
First, in case Gary is looking at this and is wondering why I switched back to a joomla component...  The reason is the menu became more complex menu so far as pointing to different parts of the site, with more sub and sub menus added, as well as the need to be able to quickly change the links.  The joomla module that I am using is very flexible for this purpose.

We are looking at the three trio menus.  
Here's the latest issue.  Client would like the submenus to appear like the Performance menu. That is, when you click on Jazz, for instance, the menu appears in line (more or less at this point) with the top of the menu. At least that is how it is behaving in Firefox.  Word Music Ensembles is another example.  Also appearing as desired in firefox

However to get this effect I have to use negative margins, so it's not working well in chrome.  I make those negative margins in the module I am using.

In an attempt to fix this issue, I have added temporary submenus to the right Alternative Studies menu.  I call them
Sub Menu Test 1
Sub Menu Test 2
Sub-Sub Menu Test 3

So Sub Menu Test 1 needs to be put in line with the "Music Industry and Technology Minor"
Sub Menu test 2 also needs to be put in line with the "Music Industry and Technology Minor"
and the "Music Industry and Technology Minor" also to be put in line with  "Music Industry and …
0
What is the best free wordpress theme for creating blocking web site.
The theme should have drop down & sub  menus
0
We have a client who wants us to upload an single large image as their holding page that they created, however, within that single image they want to have zones which can be clicked on.

Is this possible? Normally I would think a single image has to be a single URL when clicked, but maybe it’s possible to define areas of that image when clicked take the visitor to different URL’s?

If this is possible, is it easy to get working that regarding of a visitors resolution, the zone areas are reliable and  always work consistently?
0
Where the MySQL database save in xampp folder and also what is the extension of the database?

Thanks
0
Can any one please guide me what options i use to create a MySQL database and tables on this page?  Thanks
Screenshot.png
0
Hi guys: Can any one please refer me to a direct non corrupt link to install a Apache web server?

Thanks
0
folks

anybody have an xsl that contains a function to add days to a date?
0
I have some dynamically generated html that I want to be able to mesh together in to one page. It would get pretty messy to get fancy and add it all together from the scripts that generate the content so my first thought is to just add a frame to the index page and stuff one of the html files to display in that.... it's be a while since I've dabbled in web design however so I'm wondering if there are some more accepted procedures these days for achieving the same result?
0
Attached is the schema file and sample xml.  

I'm rather new at XML's, but this is what what I'm getting.

MESSAGE 1
[0:TEST] Error generated during parsing. - Unknown element 'SPO2' - Line 1, Col 621
XML Error Source - Message Body for  mid [0.0.0]
1:'SV/><SVI/><SVV/><MAP/><ManualMAP/><SBP/><DBP/><TPR/><TPRI/><ManualSPO2/><SPO2/><'

My first guess was that the schema doesn't account for anything called, "SPO2", but I created another schema where I had the name to be the same.  I still gives the same error.  

Any ideas?
Packet0.xml
CheetahData.xsd
0
Hello,
I installed the addon No Script for firefox to allow local link.
(that's the way I found)

In the advanced option, I selected the Allow local Link

Anyway it do not seems to work.

Could you please tell me what should be the good syntax to open shared network directory from an html page with firefox.

PS: If there is a way with Chrome it would also be ok for me.

Many thanks
0
This is shameful, I know, but I can't get this class to work. I need guidance. Please lead me to a good short tutorial.
pnum.class.php

<?php
class Pnum {
   public static function checksum($pnum) {
      $pnum = self::filter($pnum);
      $len = strlen($pnum);
      if($len == 10) {
         $pnum = substr($pnum, 0, 9);
      }elseif($len > 10) {
         return false;
      }

      $checksum = 0;
      $onetwo = 1;
      for($i = 0; $i < 9; $i++) {
         $onetwo = $onetwo==1?2:1;
         $tmp = $pnum[$i] * $onetwo;
         if($tmp > 9) {
            $tmp = $tmp - 10 + 1;
         }
         $checksum += $tmp;
      }
      $checksum %= 10;
      if($checksum != 0) {
         $checksum = 10 - $checksum;
      }
      return $checksum;
   }

   public static function check($pnum, $personal_only = true) {
      $pnum = self::filter($pnum);
      $len = strlen($pnum);
      if($len != 10) {
         return false;
      }

      if($personal_only && ($pnum[2] > 1 || !self::datecheck($pnum)) ) {
         return false;
      }

      return self::checksum($pnum) == $pnum[$len-1];
   }

   public static function datecheck($pnum) {
      $pnum = self::filter($pnum);
      $date = substr($pnum, 0, 6);
      $y = substr($date, 0, 2);
      $m = substr($date, 2, 2);
      $d = substr($date, 4, 2);
      $date = "19".$y-$m-$d;
      return $date == date('Y-m-d', strtotime($date));
   }

   public static function gender($pnum) {
      $pnum = self::filter($pnum);
   

Open in new window

0
I want to set a default image to show up first before the video starts.  Once you click on the image, the video starts.  How can i do this in HTML?
0
In REST terminology, what is the difference between a put and a post
0

Web Languages and Standards

39K

Solutions

30K

Contributors

Web development can range from developing the simplest static single page of plain text to the most complex web-based internet applications, electronic businesses, and social network services using a wide variety of languages and standards, including the familiar HTML, JavaScript and jQuery, ASP and ASP.NET, PHP, ColdFusion, CSS, PHP, Flex and Flash, but also the implementation of a broad list of standards including XML, WSDL, SSDL, VoiceXML and many more.