Current location: Hot Scripts Forums » General Web Coding » HTML/XHTML/XML » Div overflow question


Div overflow question

Reply
  #1 (permalink)  
Old 05-10-07, 01:39 PM
babyewok babyewok is offline
New Member
 
Join Date: May 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Div overflow question

I recently set up an iframe which contained an email form. Clicking on submit executed the php script fine. However, I am concerned about cross browser compatibility where the allow transparency attribute is concerned.

I thought maybe I could use a div overflow to get around this. It all seems to work nicely until you click submit and instead of executing the script a box pops up and asks you if you want to open or save the script. Obviously that's not right.

Is it even possible to execute a script from within a div tag like this? If it is, what would I need to change tp allow it to work properly?

Any advice is most appreciated.
Reply With Quote
  #2 (permalink)  
Old 05-10-07, 03:37 PM
sushi4664's Avatar
sushi4664 sushi4664 is offline
Aspiring Coder
 
Join Date: Apr 2007
Location: USA
Posts: 411
Thanks: 0
Thanked 0 Times in 0 Posts
Why are you using an iframe?
__________________
- sushi
Visit http://napkinz.com/index.php - web comic that is update weekly

-ps: got through the archive...there are really funny comics in there....
Reply With Quote
  #3 (permalink)  
Old 05-10-07, 03:45 PM
Vicious's Avatar
Vicious Vicious is offline
Community VIP
 
Join Date: Jan 2007
Location: Belgium
Posts: 584
Thanks: 0
Thanked 0 Times in 0 Posts
do you have a link to the example? I don't really understand what you mean, so maybe that link will help.
__________________
Jack Bauer makes Chuck Norris cry
Reply With Quote
  #4 (permalink)  
Old 05-10-07, 06:10 PM
babyewok babyewok is offline
New Member
 
Join Date: May 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
The page is on a site I'm working in for a client. http://www.stockscoachworks.co.uk/contact.html

The form is currently in an iframe and works fine, but as I said I'm exploring the use of div overflow instead because the allow transparency attribite is apparently not cross browser compatible.
Reply With Quote
  #5 (permalink)  
Old 05-10-07, 08:51 PM
sushi4664's Avatar
sushi4664 sushi4664 is offline
Aspiring Coder
 
Join Date: Apr 2007
Location: USA
Posts: 411
Thanks: 0
Thanked 0 Times in 0 Posts
Here try this, its a prewritten script that works pretty well:

http://www.twinhelix.com/dhtml/divscroll/
__________________
- sushi
Visit http://napkinz.com/index.php - web comic that is update weekly

-ps: got through the archive...there are really funny comics in there....
Reply With Quote
  #6 (permalink)  
Old 05-11-07, 08:30 AM
job0107's Avatar
job0107 job0107 is offline
Community Liaison
 
Join Date: Dec 2006
Location: Tacoma, Washington USA
Posts: 3,454
Thanks: 0
Thanked 140 Times in 137 Posts
I tried your input form with some dummy information and I am using IE6 & FireFox. It seemed to function just fine. By the way really nice layout.
__________________
Jerry Broughton
Reply With Quote
  #7 (permalink)  
Old 05-12-07, 10:46 AM
sushi4664's Avatar
sushi4664 sushi4664 is offline
Aspiring Coder
 
Join Date: Apr 2007
Location: USA
Posts: 411
Thanks: 0
Thanked 0 Times in 0 Posts
Yea, don't get me wrong, your form looks fine in Netscape, Opera, Firefox, and IE7. But if you want to really use a different method from i-frames, you can use the link I provided above.
__________________
- sushi
Visit http://napkinz.com/index.php - web comic that is update weekly

-ps: got through the archive...there are really funny comics in there....
Reply With Quote
  #8 (permalink)  
Old 05-22-07, 08:00 PM
babyewok babyewok is offline
New Member
 
Join Date: May 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks for all your help. I have actually sorted the transparency problem now. I checked the page in http://browsershots.org - a great tool by the way for checking cross browser compatibility - and tried a few things out.

At first the main problem was with ie 5 and 5.5 which are still used by a few people, so I wanted to make sure the iframes worked for people with those browsers. Turned out to be a simple case of forgetting to make the background of the source file transparent as well as adding the allowtransparency attribute to the iframe.

The iframe now works fine in ie 5.5 and although still not transparent in ie 5, at least it works (before the iframe did not show at all). I think transparency was only added with 5.5 onwards. Other than that, the only other browser that doesn't like the transparency attribute is konquerer 3.5.5.....and who uses that?!!
Reply With Quote
  #9 (permalink)  
Old 05-23-07, 03:12 AM
Vicious's Avatar
Vicious Vicious is offline
Community VIP
 
Join Date: Jan 2007
Location: Belgium
Posts: 584
Thanks: 0
Thanked 0 Times in 0 Posts
what css did you use for the transparency? (I'm curious, because I want to know what code doesn't work in IE5)
__________________
Jack Bauer makes Chuck Norris cry
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DIV Overflow Stacking Issue demon_510 CSS 7 05-09-07 11:16 PM
Injecting a string into an If Statement ? nova912 PHP 4 07-21-06 02:04 PM
Can't Understand java script maverickminds JavaScript 1 07-16-06 01:23 PM
EZ Div Toggle Question AnicoJoe JavaScript 1 05-30-06 07:06 PM
question and answer software jaydifox C/C++ 0 02-21-04 09:26 AM


All times are GMT -5. The time now is 08:56 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.