File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Selector Wildcard Looping Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Selector Wildcard Looping" Watch "Selector Wildcard Looping" New topic
Author

Selector Wildcard Looping

Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1439
    
    1
How can I verify what the following loop is picking up be cause it should loop 2 times and is loop ing four anf the last two shows undefined.




My jsp, jstl code:



Sorry, nevermind, I figured it out.

It still amazes me that still after all our technial break throughs that computers are still so dumb.

As has been said, A computer will always do what you tell it but seldom do what you want.

I had the same attribute name on two different pages, go figure.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61106
    
  66

For the future, an easy easy way to test what a jQuery selector will select is to simply open the JavaScript console and type in the jQuery statement.

(Also in the future, please refrain from posting JSP code in the HTML forum. JavaScript doesn't see the JSP, it sees the generated HTML.)


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1439
    
    1
Bear Bibeault wrote:For the future, an easy easy way to test what a jQuery selector will select is to simply open the JavaScript console and type in the jQuery statement.

(Also in the future, please refrain from posting JSP code in the HTML forum. JavaScript doesn't see the JSP, it sees the generated HTML.)


Thanks Bear.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61106
    
  66

My pleasure.

If you (and the "you" here is directed at anyone reading this post that writes any JavaScript, HTML or CSS) aren't familiar with the WebKit debugger as implemented in Chrome and Safari, you owe it to yourself to get familiar with it.

Typing jQuery statements into the JavaScript console is just the slightest tip of the iceberg. Nothing beats being able to set a breakpoint in script that isn't behaving as expected and actually looking around and making changes on the fly.

Another example: having CSS issues? Use the debugger to modify the CSS on the displayed page. See what's going to work before you have to go back to the code and update it.

The list of capabilities goes on.

Firebug for Firefox is cool too -- but I don't find it as feature-rich.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Selector Wildcard Looping