Old 21-03-2007, 11:47   #1 (permalink)
smallbeer
I Ain't Losing Any Sleep™
 
Join Date: Apr 2003
Posts: 5,200
Jquery question

I have a form that is hidden by default and shown when a link is clicked. I need it to stay open though when the form is submitted (page refreshed).

If I add an anchor (#show) to the form action is there a way for jquery to see that? Make sense?

Code:
$(document).ready(function() { $('#galleryupload').hide(); $('a#toggle').toggle(function(){ $(this).html("Hide"); $('#galleryupload').show(); },function(){ $(this).html("Upload Form"); $('#galleryupload').hide(); }); });
__________________
That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
  Reply With Quote
Old 21-03-2007, 11:55   #2 (permalink)
stickmus
hmmm...
 
stickmus's Avatar
 
Join Date: Jan 2004
Location: Yorkuk
Posts: 2,127
Wouldn't you just do an ajax submit?
__________________
George Smith - a vain attempt to get higher on google for my name

  Reply With Quote
Old 21-03-2007, 11:57   #3 (permalink)
smallbeer
I Ain't Losing Any Sleep™
 
Join Date: Apr 2003
Posts: 5,200
I can't upload files via ajax.
__________________
That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
  Reply With Quote
Old 21-03-2007, 12:08   #4 (permalink)
stickmus
hmmm...
 
stickmus's Avatar
 
Join Date: Jan 2004
Location: Yorkuk
Posts: 2,127
Fairy muff, bit of old school javascript:

self.document.location.hash
__________________
George Smith - a vain attempt to get higher on google for my name

  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8