I am using this code to create a preview pop up window of some text entered into a form textarea. Am I able to include text from more than 1 text area? So could I have the form include text from for example .txt and .txt1?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
We have a site we are working on in which we use drop downs for easy search functions. (We also have an advanced seach which use check boxes) But... the client has been asking us if we can make a muliple selection happen from this quick search. There are only like 20 options to choose from but a scrolling text box will look awfull there.. as the drop downs work nicely.
Has anyone ever seen a muliple selection drop down? Or something like it?
i am trying to use both the lightbox plugin and a fade in/out effect [URL] at once on a set of thumbnail pictures in a website. [you can see the site as it is so far here [URL]For some reason, only one or the other will work. My <head> currently looks like this:
My problem is that ive made some code for when the user clicks on a button, it will load 2 different pages into 2 separate frames, however it only seems to work when the website is viewed in IE, not firefox or mozilla etc
My two frames are main and main2
The button to return the user to the home page, has the code: onclick="homeload()"
and i have a javascript function as below in the head of my document: <script language="JavaScript"> <!-- function homeload() { parent.document.getElementById("main1").src="home.htm" parent.document.getElementById("main2").src="home2.htm" } // --> </script>
Any idea how i can make this compatible with mulitple browsers?
On the ONLOAD event I would like a popup box to open. In this popup box I need two text boxes. One for the UserName and one for the BillingTo name. After entering these two items the user can either hit the enter key or press the submit button. The popup window will close and then those two text boxes in the original webpage will be filled in automatically.
I would like to have the two fields to be validated so the popup won't close until both text boxes are filled in.
So far I have used the function from javascript.internet.com in the header of the original page. I have tried to make so that when the first popup closes the second popup will open. I can get the variables to pass the main page but I feel it would be more effecient to have both text boxes in the same popup instead of having two. Code:
I'm trying to write a small little bookmarklet to insert some text into a textarea on a website I frequent. The first problem I ran into was that while the textarea I wanted to mess with was named, the form wasn't. To get around this I tried:
window.document.forms[0].comment_body.value which, for some reason, sometimes worked. But not every time. Then I found getElementsByName but I can't seem to get that working either. Here's my latest attempt:
javascript:function wlcauto() {elements = document.getElementsByName(comment_body);V = 'bla bla bla bla bla'elements.value = V;}wlcauto();void(null)
Is it possible to have text formatting inside textareas? I mean, can you show parts of text in a textarea as bold, italic, underlined, or such? If so, how's that work?
I'm trying to move data between two textareas. I have a script i found but it isn't doing exactly what i need it to do. I believe this would be an easy fix for somebody that knows more about javascript then i do (which is limited) Code:
There are other types of records but I am only interested in the ones which start with "|Note|". The field after "Pos:" will be compared to members of:
Basically i have a function that depending on which picture you click (one for "yes" and other for "no") it will make visible a textarea .
However right now if i click in "yes" it will display me the textarea for yes, and afterwards if i click "no" it will display both textareas, for yes and no. I want everytime i click on yes it will hide the "no" textarea and the same for when i click the "no" textarea, it will hide the "yes" textarea.
I have some Javascript code that reads and sometimes sets the content of a textarea. I want this to be reasonably browser and platform independent. My question is, what characters should I expect to find at the end of a line? I suspect that I need to cope with either "" or""; can someone confirm?
Setting the content is more of a challenge. I don't want to have nasty browser detection to select what to use for newlines. Is there one newline pattern that is safe for all browsers?
I'm using a form where a user enters data in a textarea which is then copied to all other textareas on the page. Currently I have it working for 2 textareas using this code:
I need to count the non - empty fields on a JQuery tab. The following works to tally non-empty text fields and selects. How do I do the same for non-empty textareas?
So far i managed to show/hide (the only) 1 textarea if an option is selected, using javascript. How can i show all textareas in form if an option is selected (lets say <option name="active">) and hide if option selected is name="passive"?
I got a table with some select, inputs and textareas in it. if i click a button i execute addRow function which populates the row and creates new elements in each cell (new selects, inputs, textareas). But i dont know why, when i get a child of TD where select is the tagName is undefined and nodeName is #text, for INPUT and TEXTAREA it works perfect.
Some code
Code:
It happen so in Chrome and FF, in IE works fine (first time something that works here and doesnt in ff)
How do you include javascript in the definition of a jsp TLD. for example if i have a TLD called <mytld: body everytime I include this in a page, I also want some javascript to be included.
Is this done in the Java definition of the tld element?
I have a website where I need to fill its contents after retrieving some data from another system (not a DB, but you can think like it). I know the nature of the data, but the order that it is retrieved is random, and there is no way to order it. Therefore, it is giving me some pain to produce the html code.
I was thinking of having the following javascript to place my html code. Here, "rightImg" is the ID of a DIV tag where I want to position my code. The code should be the content of the htmlBody variable.
function addTopRightImage() { var htmlBody = '.' if (document.all) { document.all('rightImg').innerHTML = htmlBody; } else if (document.getElementById) { document.getElementById('rightImg').innerHTML = htmlBody; }}
However, if I set the variable as it is shown bellow, the page is not loaded as I want:
var htmlBody = '<jsp:include page="/WEB-INF/Standard.jsp" flush="true"><jsp:param name="id" value="${myid}" /></jsp:include>'
Does anyone have a clue of what is going wrong? Maybe an alternative solution?
i downloaded a script and im trying to understand the code, while trying to edit it as i want it. The script inside the php file is included in the body section.when i try to take this code into a separate file and adding it into the head section, the whole thing ONLY works on firefox :S none other browser which is very odd.
Ok at the moment im creating a generator and i would like to be able to have a new window open with the information fro the generator on it so basicly a preview button.
i was wondering how to do this and also how to incorperate it into the current javascript i have written, the js for the generaotr is as follows. Code:
I'm looking for a way to include javascript files from within a ".js" file. This would allow me to only need to link to one ".js" file, and yet still organize my functions into non gargantuan files for easy editing. I'm hoping there is some sort of include or import directive that I could use. Or if no such directive exists, I'm wondering if anyone has written one which I could use.
I need to do this without any server side scripting. For now at least, the html is being used locally with local files. Code:
I have to create a web page to give to clients that is shipped on CD. The idea is that they would open the page and it would display in their web browser.
What this will do is to provide a list of most recent changes to the software we're shipping. The idea is that there would be an un-ordered list <ul/> with a list of changes (not sure of final desired mark-up).
What we want to do is to get the developers to edit a file that simply contains a list of changes, putting in minimal markup. This "changes" file would then be "included" in some way into a parent file that contains all the branding and other information. We don't want the developers to have to navigate their way around this parent file looking for where to edit it.
As this page will be launched in a browser from disk, there won't be any help provided by a web server, so I'm really stumped as to how to accomplish this....could it be done with JavaScript at all?