The Cache: Technology Expert's Forum
 
*
Welcome, Guest. Please login or register. November 19, 2008, 10:14:37 AM

Login with username, password and session length


Pages: [1]
  Print  
Author Topic: perk is fooking genius  (Read 446 times)
nutballs
Administrator
Lifer
*****
Online Online

Posts: 3381


View Profile
« on: June 17, 2008, 04:10:34 PM »

thank you yet again.  Praise

So i had a new problem with a widget (which has been alluded to in another thread).

apparently when you try to embed an ajax type of widget, and of course break the cross domain issues with XRPC, then you can do all kinds of wonderous things. unless of course you put it onto a .NET page... LOL

turns out, that .NET wraps the whole page in a form, which I knew but didnt realize the importance of it until speaking with perk. So... When you embed a widget, that is for argument sake a little contact form, using
<Script src="someremotesitecode"></script> you run into a problem. You end up with a Form inside a form... Since the whole .NET page is wrapped in a form, your form because invalid. The submit button then automatically bubbles up to the outermost form, which refreshes the page, and of course skips your actual form that you created. duh....

well the solution is a big giant freaking  D'oh!

remove your form from the widget.
don't use a Submit button.
instead use an onclick event to call a function that reads the input elements via document.getElementById('youridname').value

can i get a giant group Doi!

it may not have been rocket science, but it still was a genius suggestion because I wasn't seeing that solution.
thanks perk.
Logged
perkiset
Olde World Hacker
Administrator
Lifer
*****
Online Online

Posts: 5135


:sniffle: Humor was so much easier before.


View Profile
« Reply #1 on: June 17, 2008, 04:29:27 PM »

Extremely generous NBs, since I was just kind of there while you worked through it Wink

Thanks muchly tho. I wonder - would you mind calling my children and letting them know that I have half a brain?
I promise to repay the favor in about 14 years.  ROFLMAO
Logged

If I can't be Mr. Root then I don't want to play.
nutballs
Administrator
Lifer
*****
Online Online

Posts: 3381


View Profile
« Reply #2 on: June 17, 2008, 05:07:20 PM »

i was actually wondering how much you had to pay your daughter when she answered the phone when I called... LOL

Like the CSS question. Sounding boards are worth a lot when a sounding board can respond with ideas and intelligence. Otherwise, i might as well talk to my dog...
Logged
stma
n00b
*
Offline Offline

Posts: 4


View Profile
« Reply #3 on: June 17, 2008, 05:45:37 PM »

My dog is very helpful.... you should try it.  Certainly more help than the kids Smiley

Logged
Pages: [1]
  Print  
 
Jump to:  

Perkiset's Place Home   Best of The Cache   phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's   Pinkhat's Perspective   
cache
mart
coder
programmers
ajax
php
javascript
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS!