Welcome, Guest. Please login or register.
Did you miss your activation email?
Sep. 02, 2010, 07:45:04 PM
53844 Posts in 11998 Topics by 11375 Members
Latest Member: elizablackmore7
News:
 
The PRADO Community » Prado v3.x » General Discussion » JavaScript » Submit from inline Thickbox « previous next »
Pages: [1] Print
Author Topic: Submit from inline Thickbox  (Read 2032 times)
kai
Junior Member
**

Karma: 0
Offline Offline

Posts: 5


View Profile
« on: Oct. 01, 2008, 05:12:46 PM »

Hello everybody,

can anybody tell me what exactly happens when a Javascript function is triggered (i.e. javascript:;//ctl0_main_ctl1_Post1) when you click a THyperLink for instance.
I couldn't find any information on "javascript:;//" on Google.
Is there any way to call that Javascript function the "normal" way?

The background is we're trying to submit a form from an inline Thickbox (not using Iframe) and submit buttons don't work (nothing at all happens).
Has anybody experience with Postbacks from an inline Thickbox?

Thanks a lot in advance  Smiley

Cheers
Kai
Logged

lithron & phundament - components for PRADO 3
http://sourceforge.net/projects/lithron
http://www.phundament.com
notzippy
Senior Member
***

Karma: 14
Offline Offline

Posts: 231


View Profile
« Reply #1 on: Oct. 01, 2008, 06:04:22 PM »

Well one of your issues will be that JQuery is required for thick box and this reeks havoc on prado's active controls and the THyperlink control.

To work around I would suggest one of the following
1) Alias the JQuery "$" notation to "$jquery" or the likes, then update the thickbox javascript to use the new notation.
2) Dont use Thickbox, use http://prototype-window.xilinus.com/ it works in a simlar way

NZ

P.s. the href is simply a dummy reference, Prado ties into the links' onClick event using prototype. 
Logged
kai
Junior Member
**

Karma: 0
Offline Offline

Posts: 5


View Profile
« Reply #2 on: Oct. 02, 2008, 11:03:34 AM »

Hi notzippy,

thanks a lot for your reply. I've tried the Prototype Window script and it seems really cool - but I couldn't solve my problem yet.
As I'm on a very tight schedule I'll try to accomplish my goal without popups.
Maybe I'll get back to it when I have more time.

So thanks again and c u.
Kai
Logged

lithron & phundament - components for PRADO 3
http://sourceforge.net/projects/lithron
http://www.phundament.com
rojaro
Administrator
Platinum Member
*****

Karma: 38
Offline Offline

Posts: 684


PRADO aint no voodoo ...


View Profile WWW
« Reply #3 on: Oct. 02, 2008, 12:22:55 PM »

You also might want to take a look at LivePipe which also provides some really nice features and also should be really easy to integrate.

Greetings from Hamburg / Germany
- rojaro -
Logged

A mathematician is a machine for turning coffee into theorems. ~ Alfred Renyi (*1921 - †1970)
kai
Junior Member
**

Karma: 0
Offline Offline

Posts: 5


View Profile
« Reply #4 on: Oct. 02, 2008, 09:13:45 PM »

Hi rojaro,

thank you for the link  Smiley
LivePipe does look promising, unfortunately I don't have the time to check out if it solves my problem.

We discarded the idea to use popups because we've got to get it working fast.

Cheers
Kai
Logged

lithron & phundament - components for PRADO 3
http://sourceforge.net/projects/lithron
http://www.phundament.com
notzippy
Senior Member
***

Karma: 14
Offline Offline

Posts: 231


View Profile
« Reply #5 on: Oct. 03, 2008, 02:10:33 AM »

Very cool link rojaro, will have to try to play with that more  Grin
Logged
Pages: [1] Print 
« previous next »
Jump to: