Try using event delegation http://lab.distilldesign.com/event-delegation/
or jquery's own .live() method http://api.jquery.com/live/

On Tue, Jan 19, 2010 at 11:18 AM, Greg <gnlmu...@googlemail.com> wrote:
> Hi Folks,
>
> I have a small logic problem that I am trying to get to the bottom
> of.
>
> Basically I have a database which I query using PHP. I call the PHP
> using either a jQuery $.ajax or a .load .
>
> The rows of my db are displayed nicely along with some icons at the
> end of each row which are there to open up dialog boxes for the user
> to make changes. Then once those dialogs are completed I want to
> reload the php database query again to ensure that I am displaying is
> in fact the most recent data.
>
> So I have a page (lets call it View.php) with my base layout with divs
> etc splitting the page up into areas. I then have a $(document).ready $
> ("#mainContent").load("queries/ViewQuery.php"); to load the content of
> my query into the <div mainContent >.
>
> The ViewQuery.php does the actual database lookup and returns marked
> up html to display the results. It is however at this point that I hit
> the brakes.
>
> My icons have click functions for <A> areas which are defined by the
> page View (but you recall these are drawn through the result of
> loading the ViewQuery.php file).
>
> These do not appear to be trigged ( I suspect because these are not
> available to the page when the $(document).ready(function) is called.
>
> Am I overcomplicating things?  is there a better way to do this?
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "jQuery UI" group.
> To post to this group, send email to jquery...@googlegroups.com.
> To unsubscribe from this group, send email to 
> jquery-ui+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/jquery-ui?hl=en.
>
>
>
>



-- 
Andrei Eftimie
http://eftimie.com
+40 758 833 281

Punct
http://designpunct.ro
-- 
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to jquery...@googlegroups.com.
To unsubscribe from this group, send email to 
jquery-ui+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en.


Reply via email to