Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: jQuery returns undefined variable - doesn't take html value

Started 2 months ago by Wolfie
Hi all I have this html code (with Smarty) : Line number On/Off | Expand/Contract   <div id = "menu" >     <ul>         {section name="i" loop=$box}         <li value = "{$box[i]}" > <a href = "#" class = "menu" > {$box[i]} </a> </li>         {/section}         <li> <a href = "#" > Recived </a> </li>         <li>...
Site: DevNetwork Forums  DevNetwork Forums - site profile
Forum: Client Side  Client Side - forum profile
Total authors: 91 author
Total thread posts: 4 posts
Thread activity: 37 new posts during last week
Domain info for: devnetwork.net

Other posts in this thread:

k3ndr4 replied 3 months, 2 weeks ago
Hello there. I'm trying to develop an survivor fantasy football site. Basically, I have a form with two dropdown boxes. The first drop down box works just fine - it queries SQL and posts the NFL schedule in a table based on the week # the user selects from the dropdown list. I would like to take the awayTM (away team) and homeTM (home team) results and also put them in a 2nd dropdown list for...

astions replied 3 months, 2 weeks ago
Moved to Javascript

pcoder replied 3 months, 2 weeks ago
Hi All, Is it possible to use the id attribute of an element instead of name attribute while defining a validation rule in jQuery? If yes, What would I have to do? I hope , you guys have some view on it.

astions replied 3 months, 2 weeks ago
Line number On/Off | Expand/Contract $ ( "#element_id" ) . blah

pcoder replied 3 months, 2 weeks ago
Thanks astions for the quick response. Can I do the validation by using ID instead of Name attribute in jQuery?

astions replied 3 months, 2 weeks ago

pcoder replied 3 months, 2 weeks ago
Can you please give some idea on this? I think I have to change somewhere in jquery validate plugin file. right?

astions replied 3 months, 2 weeks ago
Have a look at the manual. From what I see it already does use the element ID's. http://docs.jquery.com/Plugins/Validation

pcoder replied 3 months, 2 weeks ago
I have gone through the manual and used validation in some of the projects. jQuery use Name instead of ID for validation. But in one form , I have the feature of Add More, Which increments the ID attribute dynamically but the name attribute is same. The reason for making name attribute same is to get the posted value in an array. But here the validation rule is failed. I tried a lots of way to do...

astions replied 3 months, 2 weeks ago
Yeah I don't know what to tell you. I wouldn't be able to answer that without studying the documentation. From what I did see however, it was using the ID. Maybe someone else can help.

 

Top contributing authors

Name
Posts
kaszu
28
user's latest post:
onload="alert('all...
Published (2009-12-11 12:38:00)
You have repeated doctype declaration. Check your html with validator, fix all issues and then it will work. From sample.zip: Line number On/Off | Expand/Contract &lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt; &lt;html xmlns= &quot;http://www.w3.org/1999/xhtml&quot; &gt; &lt;head&gt; &lt;script type =...
avoosh
27
user's latest post:
encodeURIComponent pass to 2nd...
Published (2009-11-13 02:13:00)
This is the static version of the output to link &lt;a href=&quot;http://www.socialwebsite.com/cgi/add?title=TITLE&amp;url=URL&amp;imgurl=IMAGE_URL&quot;&gt; &lt;img src=&quot;http://cdn.socialwebsite.com/rsrc/img/favicon.png&quot;&gt; &lt;/a&gt; This is the code that I have so far that works (kind of). It will output the Title, the url of the item but not the url of the image. Line number On/Off...
pickle
13
user's latest post:
[56K warn] jQuery Clone
Published (2009-11-20 12:20:00)
You want us to debug an entire jQuery plugin?
Wolf_22
9
user's latest post:
Fastest way to cycle through...
Published (2009-11-19 11:18:00)
I think I see what you're saying. Makes sense.
krraleigh
9
user's latest post:
Javascript and XML...how to...
Published (2009-12-08 23:10:00)
Working through the Javascript book &quot;Professional Javascript for Web Developers&quot; by Wrox, author &quot;Zakas&quot;. In particular I am working through his section on how to handle XML processing in Javascript. The book gives a really good cross browser function for handling xslt transformation, but it stops short in telling me how to create a dom object out of an xslt file. &quot;myfile.xslt&quot; I have never...
jbh
8
user's latest post:
How To Add Jquery Value To DB...
Published (2009-11-02 11:12:00)
One thing to mention. I do have a text field that displays, dynamically, the value &lt;input type=&quot;text&quot; id=&quot;amount&quot; style=&quot;border:0; color:#f6931f; font-weight:bold;&quot; / name=&quot;test&quot;&gt; I guess my question is how do I use the built in 'stop' function to autosubmit/ajax post? I know HOW to ajax post, but syntax wise I am still not sure how to set it up. In...
sergio-pro
8
user's latest post:
Document write url
Published (2009-11-11 12:24:00)
It will output anything, that you will pass as a parameter to a function in onclick handler.
VladSun
8
user's latest post:
Switch statement doesn't work
Published (2009-12-11 10:31:00)
Why one should even compare values in a case statement ??? http://www.w3schools.com/js/js_switch.asp http://php.net/manual/en/control-structures.switch.php Example 1!
jeffmatthews
7
user's latest post:
Referencing an empty node
Published (2009-10-24 14:00:00)
Matt's a busy guy! I found the answer. Must test: if (name[0].firstChild)... What a joke! Who wrote the program to require such extraneous evaluations? It should just return null or an empty string, or whatever.
josh
7
user's latest post:
Possible to get hard coded...
Published (2009-12-10 14:50:00)
Nice. I'd tattoo it to my inner eyelids but I dont think itd fit.

Related threads on "DevNetwork Forums":

Related threads on other sites:

Thread profile page for "jQuery returns undefined variable - doesn't take html value" on http://www.devnetwork.net. This report page is a snippet summary view from a single thread "jQuery returns undefined variable - doesn't take html value", located on the Message Board at http://www.devnetwork.net. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity