473,657 Members | 2,825 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Inserting a line break

I am using a javascript to display a slide show of images.

Each image is called with this in the body:-

<select name="slide" onchange="chang e();">
<optionvalue="p ictures/picture01.jpg">
Text under the picture</option>
<optionvalue="p ictures/picture02.jpg">
Text under the picture</option>
</select>
When I have a lot of text under the picture I want to spread it over
two lines but if I insert <brit is ignored

Is there any other way to force a line break within the <option...?

--
Joe Boy
Jun 27 '08 #1
4 2358
Joe Boy wrote:
I am using a javascript to display a slide show of images.

Each image is called with this in the body:-

<select name="slide" onchange="chang e();">
<optionvalue="p ictures/picture01.jpg">
Text under the picture</option>
<optionvalue="p ictures/picture02.jpg">
Text under the picture</option>
</select>
When I have a lot of text under the picture I want to spread it over
two lines but if I insert <brit is ignored

Is there any other way to force a line break within the <option...?
'<optionvalue= ' ?????? Do you mean '<option value=' ?
Jun 27 '08 #2
On Tue, 13 May 2008 21:35:48 -0400, sheldonlg <sheldonlgwrote :
>Joe Boy wrote:
>I am using a javascript to display a slide show of images.

Each image is called with this in the body:-

<select name="slide" onchange="chang e();">
<optionvalue="p ictures/picture01.jpg">
Text under the picture</option>
<optionvalue="p ictures/picture02.jpg">
Text under the picture</option>
</select>
When I have a lot of text under the picture I want to spread it over
two lines but if I insert <brit is ignored

Is there any other way to force a line break within the <option...?

'<optionvalue= ' ?????? Do you mean '<option value=' ?
Ooopppps - yes <option value=

I copied and pasted from the source code in the web site which has the
space so I don't know where it vanished to :-(

--
Joe Boy
Jun 27 '08 #3
On May 14, 11:25 am, Joe Boy <joe...@invalid .invalidwrote:
I am using a javascript to display a slide show of images.

Each image is called with this in the body:-

<select name="slide" onchange="chang e();">
<optionvalue="p ictures/picture01.jpg">
Text under the picture</option>
<optionvalue="p ictures/picture02.jpg">
Text under the picture</option>
</select>

When I have a lot of text under the picture I want to spread it over
two lines but if I insert <brit is ignored

Is there any other way to force a line break within the <option...?
No.

BTW, this is an HTML question, not javascript, so try:

news:comp.infos ystems.www.authoring.html

or just read:

<URL:
http://groups.google.com.au/group/co...617b6a7580723b
>

--
Rob
Jun 27 '08 #4
On Tue, 13 May 2008 20:23:34 -0700 (PDT), RobG <rg***@iinet.ne t.au>
wrote:
>On May 14, 11:25 am, Joe Boy <joe...@invalid .invalidwrote:
>I am using a javascript to display a slide show of images.

Each image is called with this in the body:-

<select name="slide" onchange="chang e();">
<optionvalue="p ictures/picture01.jpg">
Text under the picture</option>
<optionvalue="p ictures/picture02.jpg">
Text under the picture</option>
</select>

When I have a lot of text under the picture I want to spread it over
two lines but if I insert <brit is ignored

Is there any other way to force a line break within the <option...?

No.

BTW, this is an HTML question, not javascript, so try:

news:comp.infos ystems.www.authoring.html

or just read:

<URL:
http://groups.google.com.au/group/co...617b6a7580723b
>>
Thanks Rob - that seems to cover it.
--
Joe Boy
Jun 27 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2754
by: Chris Sharman | last post by:
Writing a form, several questions have got a list of checkboxes, with associated descriptions (mostly one word), all on a line. Eg: Describe yourself: Fat Hairy Ugly Wears glasses. I want to prevent the description word(s) from being separated from their box (represented here as ""). I want to insert some spacing between items, so that it's clear the third box means ugly, not hairy - I've used "&nbsp;&nbsp;", between items (as well as...
4
12370
by: Tom Dauria | last post by:
What I am trying to do is write a resume into a word document from information in an Access database. I have been using bookmarks and inserting table results into the document and so far it's working but I have run into a problem. The final section of the resume deals with Experience which is subgrouped by Market Segments and then experience. What I want it to look like is
2
7277
by: Brett | last post by:
I'm writing something similar to this into a text file: txtfileError.WriteLine(CurrentDateTime(1) & " Error in Sub Sub1()" & idvar & Chr(10) & Chr(13) & ex.Message) txtfileError.WriteLine() Instead of line breaks, I see two boxes. Everything runs together. There is a double line break where the WriteLine() is. How do I place a single line break in the text file?
1
1695
by: Ken Fine | last post by:
I'm using ASP VB. I want to insert a VbCr or a VbLf into a declared string every N characters. FWIW, I want to do this because of an apparent limitation in MSXML2, which I am using to "scrape" data from webpages that I control: I'm getting spurious exclamation points (!) where line lengths are too long. Manually inserting line breaks (which do not render in HTML) seems to solve the problem. If I cannot figure out what's wrong with MSXML...
3
4268
by: rcoco | last post by:
Hi, I want to share this problem. I have a datagrid that will help me Insert data into sql database. So I made a button On my form so that when I press the button a new row on datagrid should be created and I could be able to insert data. But with this code below I've failed could someone help me and tell me where I'm going wrong: private void Page_Load(object sender, System.EventArgs e) { if (! IsPostBack)
20
16626
by: alice | last post by:
I'm doing some text swapping with javascript, got it working fine, but I would like the line to have line breaks and being a beginner, I don't even know if this is possible. So I have a line like this swaptext('Shaun, Greg, Violet, Joel, 1999')"; and I would like 1999 to be on a new line. Is there a simple way to do this? I'd swear I've seen a way, but now I can't seem to find it.
1
8354
by: Penelope Dramas | last post by:
Hello, I'm having problem inserting line break into one of the strings located in project resource. I've tried "Line1/nLine2" (from C#) and it wouldn't work. Tried Line1 + Environment.NewLine + Line2 also no luck. Is there any workaround even if it involves editing resources.xml file directly.
20
3010
by: dav3 | last post by:
Alright folks I am in need of a lil guidance/assistance here. I have a program which reads in a txt file. This txt file contains lines of the form January 3, 2007, 85.8 Now each line of the txt file is to be read into my java program and then inserted (from the program into an Access Database). I am not exactly sure of where the problem lies. I know it has something to do with how I am parsing the file, or how I am passing my arguments to...
5
13100
by: atlanteavila | last post by:
Hello all, I have a problem with inserting text with quotes, or html code in to a MYSql Database. I've been trying to create my own content management system, and unfortunately I've come accross a problem, the script below works perfectly if I'm not inserting any quotes (" ") or html tags. I'm wondering if I'm doing something wrong here? The field type where all of the content will go was set up as a blob type. I have the following PHP...
0
8403
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8316
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8737
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8610
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7345
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5636
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4327
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2735
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.