This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes link from JQuery is not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "link from JQuery is not working" Watch "link from JQuery is not working" New topic

link from JQuery is not working

Nicky Eng
Ranch Hand

Joined: Mar 26, 2005
Posts: 378
I have one issue which I don't understand why it cannot work.

I have a page first load data from Servlet and display in a table(inside div1). Inside the table each row I have link attached to data.

When I click on the link, the dialog (div2) is not showing up.

But if i put static data on the table and have link attached to data, i click then it works, my div2 is shown on the screen.

So am I missing something in JQuery?

Let's see my code:

Part 2:

I checked the page, it loaded with my data but from browser's page source, it doesn't have data from JQuery script at just display something like this

maybe that is why the link is not working? because of the rendered html code ?
i'm lost....

please help.

From NickyEng
Diploma in Computer Studies
SCJP 1.4
Formula 1 app by Maxis (Playbook)
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15376

You are appending table rows to a div, not a table.

I agree. Here's the link:
subject: link from JQuery is not working
Similar Threads
jQuery AJAX display issue
document.forms[0].submit(); throws Invalid Argument in IE
Is it possible to put a button inside autocomplete in jquery ui plugin?
Problem in hiding the row of data
Export dynamic table gen in jsp to excel