Go Back   RunUO - Ultima Online Emulation > Developer's Corner > Programming > Script Languages

Script Languages Perl/PHP/Python/Ruby so on and so forth.

Reply
 
Thread Tools Display Modes
Old 02-10-2007, 06:34 PM   #1 (permalink)
Master of the Internet
 
Join Date: Oct 2005
Age: 44
Posts: 6,283
Default inserted form causes line break

Can anyone tell my why this code

RunUO Community Pastebin 2.50

produces 2 lines? I've tried every attribute I can think of and no matter what, the second image is forced to the next line (or wrapped at the very least) which is unacceptable in this instance.
__________________
Why is it that I'm never as smart as I thought I was yesterday?
My vast knowledge is only surpassed by my infinite ignorance.
<TheOutkastDev> i might have to hire an assassin to killl mal so that i can jump in front of the bullet and piss on him
Malaperth is offline   Reply With Quote
Old 02-12-2007, 02:26 PM   #2 (permalink)
Forum Expert
 
mordero's Avatar
 
Join Date: Nov 2003
Location: Illinois, USA
Age: 21
Posts: 2,911
Default

the form ending tag appears to be forcing a new line try moving the picture that is supposed to be on the right hand side inside of the <form></form>. It should go after the submit button before the </form>.
mordero is offline   Reply With Quote
Old 02-12-2007, 02:41 PM   #3 (permalink)
Master of the Internet
 
Join Date: Oct 2005
Age: 44
Posts: 6,283
Default

Well, yes, but, unfortunately, all the code (including the form tags) are dynaically inserted at runtime, so if possible, attributes to control the size of the form area are needed. Otherwise, I need to find another way to add the form.
__________________
Why is it that I'm never as smart as I thought I was yesterday?
My vast knowledge is only surpassed by my infinite ignorance.
<TheOutkastDev> i might have to hire an assassin to killl mal so that i can jump in front of the bullet and piss on him
Malaperth is offline   Reply With Quote
Old 02-12-2007, 04:32 PM   #4 (permalink)
Forum Expert
 
mordero's Avatar
 
Join Date: Nov 2003
Location: Illinois, USA
Age: 21
Posts: 2,911
Default

So, the page is just a template (which includes the picture tags) and the form is inserted into this template?
mordero is offline   Reply With Quote
Old 02-12-2007, 04:33 PM   #5 (permalink)
Master of the Internet
 
Join Date: Oct 2005
Age: 44
Posts: 6,283
Default

Well, it is an entire page and the code (including the form tags themselves) within the form tags is inserted at runtime between the two images (they are boders).
__________________
Why is it that I'm never as smart as I thought I was yesterday?
My vast knowledge is only surpassed by my infinite ignorance.
<TheOutkastDev> i might have to hire an assassin to killl mal so that i can jump in front of the bullet and piss on him
Malaperth is offline   Reply With Quote
Old 02-12-2007, 04:39 PM   #6 (permalink)
Forum Expert
 
mordero's Avatar
 
Join Date: Nov 2003
Location: Illinois, USA
Age: 21
Posts: 2,911
Default

hmmmm well, you could always use tables...
mordero is offline   Reply With Quote
Old 02-12-2007, 04:41 PM   #7 (permalink)
Master of the Internet
 
Join Date: Oct 2005
Age: 44
Posts: 6,283
Default

Yup, I could, but rather than resort to mix and match, I was hoping to learn how to do this "right"
__________________
Why is it that I'm never as smart as I thought I was yesterday?
My vast knowledge is only surpassed by my infinite ignorance.
<TheOutkastDev> i might have to hire an assassin to killl mal so that i can jump in front of the bullet and piss on him
Malaperth is offline   Reply With Quote
Old 02-12-2007, 05:11 PM   #8 (permalink)
Forum Expert
 
mordero's Avatar
 
Join Date: Nov 2003
Location: Illinois, USA
Age: 21
Posts: 2,911
Default

this is why I hate actual web design lol,

try this
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="XHTML namespace">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
 <div>
  <span>
   <img src="images/leftside.gif" align="left" />  
  </span>
  <span>
   <span>
    <form action="http://localhost:1980/sort" method="get" name="form1" id="form1" style="display:inline">
     <select name="sortby">
      <option value="default">Default</option>
      <option value="Rank">Rank</option>
      <option value="CurOnline">Online Count</option>
      <option value="MaxOnline">Online Peak</option>
      <option value="AvgOnline">Online Avg</option>
      <option value="Votes">Votes</option>
      <option value="TotalVotes">Total Votes</option>
      <option value="Name">Name</option>
      <option value="Description">Description</option>
     </select>
     <input type="submit" value="Sort" />
      </form>
   </span>
  </span>
  <span>
   <img src="/images/rightside.gif" />
  </span>
 </div>
</body>
</html>
and actually you could get rid of some of those spans as well...

edit: not sure why it is adding the runuo stuff before the image src...

Last edited by mordero; 02-12-2007 at 05:38 PM.
mordero is offline   Reply With Quote
Old 02-12-2007, 05:33 PM   #9 (permalink)
Master of the Internet
 
Join Date: Oct 2005
Age: 44
Posts: 6,283
Default

Still has a forced wrap.
__________________
Why is it that I'm never as smart as I thought I was yesterday?
My vast knowledge is only surpassed by my infinite ignorance.
<TheOutkastDev> i might have to hire an assassin to killl mal so that i can jump in front of the bullet and piss on him
Malaperth is offline   Reply With Quote
Old 02-12-2007, 05:36 PM   #10 (permalink)
Forum Expert
 
mordero's Avatar
 
Join Date: Nov 2003
Location: Illinois, USA
Age: 21
Posts: 2,911
Default

what browser are you using?
mordero is offline   Reply With Quote
Old 02-12-2007, 05:44 PM   #11 (permalink)
Master of the Internet
 
Join Date: Oct 2005
Age: 44
Posts: 6,283
Default

IE6. I just wish I could remember what I did to fix this about 6 years ago as I seem to remember having a similar problem with inserted forms.
__________________
Why is it that I'm never as smart as I thought I was yesterday?
My vast knowledge is only surpassed by my infinite ignorance.
<TheOutkastDev> i might have to hire an assassin to killl mal so that i can jump in front of the bullet and piss on him
Malaperth is offline   Reply With Quote
Old 02-12-2007, 05:46 PM   #12 (permalink)
Forum Expert
 
mordero's Avatar
 
Join Date: Nov 2003
Location: Illinois, USA
Age: 21
Posts: 2,911
Default

Oh hmmm crap, well it works for Firefox and IE7, ill see what else I can do to get it to work...
mordero is offline   Reply With Quote
Old 02-12-2007, 05:51 PM   #13 (permalink)
Master of the Internet
 
Join Date: Oct 2005
Age: 44
Posts: 6,283
Default

Well, if I remember correctly, Microsoft claims to be W3C compliant, but I sure never have been able to get supposedly 'safe' and 'compliant' code to work in most all browsers...
__________________
Why is it that I'm never as smart as I thought I was yesterday?
My vast knowledge is only surpassed by my infinite ignorance.
<TheOutkastDev> i might have to hire an assassin to killl mal so that i can jump in front of the bullet and piss on him
Malaperth is offline   Reply With Quote
Old 02-12-2007, 05:56 PM   #14 (permalink)
Forum Expert
 
mordero's Avatar
 
Join Date: Nov 2003
Location: Illinois, USA
Age: 21
Posts: 2,911
Default

well IE6 wasnt very compliant at all, which is why it may not show it correctly, right now im trying to find a website that will show me what a web page looks like on different browsers...
mordero is offline   Reply With Quote
Old 02-13-2007, 02:09 PM   #15 (permalink)
Forum Expert
 
mordero's Avatar
 
Join Date: Nov 2003
Location: Illinois, USA
Age: 21
Posts: 2,911
Default

Hmm im not sure why that didnt work for you... if you look at these it should have worked

http://browsershots.org/website/http...ests/form.html
mordero is offline   Reply With Quote
Old 02-13-2007, 02:13 PM   #16 (permalink)
Master of the Internet
 
Join Date: Oct 2005
Age: 44
Posts: 6,283
Default

Quote:
Originally Posted by mordero View Post
Hmm im not sure why that didnt work for you... if you look at these it should have worked

http://browsershots.org/website/http...ests/form.html
Hmmm. And those screenshots are using the exact code I posted in pastebin? If so, I wonder if I have some inbetween version of IE (it's 6.02 with a bunch more after that).
__________________
Why is it that I'm never as smart as I thought I was yesterday?
My vast knowledge is only surpassed by my infinite ignorance.
<TheOutkastDev> i might have to hire an assassin to killl mal so that i can jump in front of the bullet and piss on him
Malaperth is offline   Reply With Quote
Old 02-13-2007, 02:23 PM   #17 (permalink)
Forum Expert
 
mordero's Avatar
 
Join Date: Nov 2003
Location: Illinois, USA
Age: 21
Posts: 2,911
Default

no thats the code I just posted.
mordero is offline   Reply With Quote
Old 02-13-2007, 02:24 PM   #18 (permalink)
Forum Expert
 
mordero's Avatar
 
Join Date: Nov 2003
Location: Illinois, USA
Age: 21
Posts: 2,911
Default

you can go to Untitled Document to see it
mordero is offline   Reply With Quote
Old 02-13-2007, 02:54 PM   #19 (permalink)
Master of the Internet
 
Join Date: Oct 2005
Age: 44
Posts: 6,283
Default

AHA!!! That may be exactly what I was looking for, mordero!!!

Code:
style="display:inline"
*** runs off to try it ***


[EDIT]

Damn... It must have to do with this damn mongrel IE version I'm using for some reason, as it seems not to work...

[EDIT AGAIN]

Wow, that is really weird... guess it was either a complete mental breakdown on my part or a cache issue... Pasted what you had, and it now works... Thanks LOADS, mordero!!!
__________________
Why is it that I'm never as smart as I thought I was yesterday?
My vast knowledge is only surpassed by my infinite ignorance.
<TheOutkastDev> i might have to hire an assassin to killl mal so that i can jump in front of the bullet and piss on him

Last edited by Malaperth; 02-13-2007 at 03:03 PM.
Malaperth is offline   Reply With Quote
Old 02-13-2007, 03:01 PM   #20 (permalink)
Forum Expert
 
mordero's Avatar
 
Join Date: Nov 2003
Location: Illinois, USA
Age: 21
Posts: 2,911
Default

damnit, lol, a rogue version of IE that refuses to cooperate
mordero is offline   Reply With Quote
Old 02-13-2007, 04:13 PM   #21 (permalink)
Master of the Internet
 
Join Date: Oct 2005
Age: 44
Posts: 6,283
Default

I think it's a rogue mind that refuses to cooperate...
__________________
Why is it that I'm never as smart as I thought I was yesterday?
My vast knowledge is only surpassed by my infinite ignorance.
<TheOutkastDev> i might have to hire an assassin to killl mal so that i can jump in front of the bullet and piss on him
Malaperth is offline   Reply With Quote
Old 02-13-2007, 04:22 PM   #22 (permalink)
Forum Expert
 
mordero's Avatar
 
Join Date: Nov 2003
Location: Illinois, USA
Age: 21
Posts: 2,911
Default

lol oh you edited it
im glad i could help
mordero is offline   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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5