| MM_validateForm() documentation |
|
 |
Index ‹ javascript
|
- Previous
- 1
- JavaScript population of ASP drop down<email***@***.com> wrote in message
news:email***@***.com...
> First, my apologies for a newbie question that may have been answered
> before - my JavaScript skills lag behind my VB experience.
>
> I am trying to populate an drop down control with the recordset
> results of an ADODB connection to a Access DB. The database/recordset
> portion seems to be working fine. However, I'm not clear how to write
> the Select <options>.
>
> BACKGROUND
> * I have modularized the DB open + close.... global var the
> variables
>
> function openDB() {
> strConnection = "UID=;pwd=;DSN=reports;";
> objConn = new ActiveXObject("ADODB.Connection");
> objConn.open(strConnection);
> objRS = new ActiveXObject("ADODB.Recordset");
> }
> function closeDB() {
> objRS.Close();
> objConn.Close();
> }
>
> * The onChange even triggers the following:
> openDB();
> strSqlData ="SELECT fld_example from tbl_example";
> objRS.open(strSqlData, objConn);
> while(!objRS.EOF) {
> ........ OK so far....how do I get the recordset
> sequentially into the select?
> <OPTION value="<%= rs("fld_example")%>"><%=
> rs.Fields("fld_example")%></option>
> <%
> rs.movenext
> Loop
> %>
> ....??? VB how do wite that into the form using JS?
>
> Any advice or examples would be greatly appreciated (other than RTFM).
>
> Phil Morgan
>
> // document.getElementById("year").[getElementById("year").length]=
> new Option ("display string " + i, "value " + i);
> // }
> closeDB();
> break;
Is the recordset "objRS" or "rs"?
I usually construct the string comletely:
var opts = "";
while(!objRS.EOF) {
opts += "<option value=" + objRS("fld_example") + ">" +
objRS.Fields("fld_example") + "</option>"
objRS.movenext
}
before using it:
<select>
<%=opts%>
</select>
Also, I usually use VBScript (instead of JScript) with ASP.
(Note sure what that code was after your signature.)
- 2
- Writing a local XML file from a parsed URL?? Similar to RSSHello,
I may not have worded the subject correctly, but what I am trying to do
is pull the XML data from the following stream,
http://www.360voice.com/api/blog-getentries.asp?tag=changeagent&num=5,
into a webpage. What I would like to do, or think I need to do is
create a webpage that will pull the XML data from the above URL and
write it to a local XML file. I would then like to apply an XSL
stylesheet to the local XML file and display it on a website. In other
words, I am trying to pull the above URL into my website.... so I am
looking for a place to start with javascript. This is almost like
displaying RSS feeds into a webpage.
Thanks so much!!!!!
Shannon
- 2
- Another form validation discussionHow do people deal with cleint side validation when javascript is
turned off?
I thought about adding some extra server side validation but I am not
sure how to mix the two properly.....
Any tips and tricks?
Thank you in advance,
FayeC
- 3
- Sending page as XML lets offsetWIdth return 0When use text/html as header for my page the method
element.offsetWIdth/Height work as usually and return the real
width/height of an element, but when I use XML as type (which is
necessary in modern browsers to use strict XHTML) the function returns
just 0.
Can somebody help me, it's very important. The prototype function
Element.getDimensions() doesn't work in strict mode.
Greetz
Andi
- 3
- Regular expression difference in NN.I am using a string which has <tr> tags inside it.
I want to do a greedy search on it.
For eg.. if that string contains,
<nothing><tr>bla</tr><tr>blablabla</tr><tr>hi</tr></nothing>
I want to extract the things inside <tr>..</tr> tags.
Like,
<tr>bla</tr><tr>blablabla</tr><tr>hi</tr>
I wrote regular expression
1.var extractTR = /<tr(.|\n|\r)*<\/tr>/mgi;
2.table_tr_arr = withReportPage.match(extractTR); //withReportPage is
the string.
When i execute in IE, everything is working, but when i open it in
NN 7, it is crashing when that line is executed !. Seems greedy search
is not supported in NN7 ??
Help !!!!
-Prasanna.
- 3
- function call on submitHi,
I have a function call in my form tag like this:
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"
name="myform" id="myform" onsubmit="return chkform()">
and the function looks like:
<script type="text/javascript">
function chkform()
{
if (document.myform.first_name.value == "")
{
alert("Please enter your firstname!");
document.Formular.first_name.focus();
return false;
}
if (document.myform.last_name.value == "")
{
alert("Please enter your lastname!");
document.Formular.last_name.focus();
return false;
}
...
...
...
alert("SUBMIT!");
return true;
}
</script>
It can be checked out here: http://www.dvdnowkiosks.com/tmp/form.php
The form gets submitted even tho the function returns false, why this??? :o
As soon as you hit the OK button from the alert box, data get submitted to
the php, why this? It shouldn't, no? What am i doing wrongly?
Thank you!
Ron
- 3
- Problem when trying to copy the home page design of Msn Video siteThis is the msn video site: http://video.msn.com/
On the home page, we can see some small preview pictures of
videos.When we move the cursor over it, the picture will disappear,
and some description text about the video will show up and replace the
area of the original picture. When we move the cursor out of it, the
picture is back again.
I am trying to imitate exactly this effect.
I use both of the onmouseover and onmouseout events to do that job,
and it looks just as it is the real site of msn video. But there is a
problem with it and I spent a whole day on it but still can't figure
out a solution.
The problem is: when I move the cursor in a normal speed over several
preview pictures, everything is ok, but When I move the cursor over
these pictures in a high speed, some of the pictures will not come
back, and the replaced description texts of them are still there. It
seems as if some onmouseout events failed to execute or are missing.
Could someone give me some tips about how to resolve this problem?
- 7
- "Split & Parts" different results in Firefox & IExplorerThe following code is supposed to reverse the date in "yyyy-mm-dd" format,
but it produces different results in Firefox 1.0 and in Internet Explorer
6SP1. In Firefox, the result is correct ("2004-11-29") but it's wrong in
Internet Explorer 6SP1 ("00:20:15-11-29"). If I change "dateParts[3]" to
"dateParts[4]", it's exactly the opposite that occures: a correct result in
IExplorer but a fault in Firefox. Is there a workaround? Where do I miss the
point??
>>
function SplitDate()
{
// Split current date.
today = Date();
dateParts = today.split(" ");
// Assign splitted date parts to variables.
year=dateParts[3];
month=GetMonthNumber(dateParts[1]);
day=dateParts[2];
// Build date in "yyyy-mm-dd" format
dateStamp = year + "-" + month + "-" + day;
}
>>
Result in Firefox 1.0 is => 2004-11-29
Result in Internet Explorer 6 => 00:20:15-11-29
Kinne
- 10
- How effective is user side caching?I am creating a personal project where I plan to use AJAX. Something on
the lines of google suggest. I was wondering what kind of caching
mechanisms should I use? Let me know your views about client side
caching (in browser) of last few queries and its results.
- 10
- Hiding rows in a table via <div>Following is a snippet of html in which I hide a whole table and try to
hide a single row.
Here is my question (plz don't chew my head off if its css related instead):
Why does the divTable <div> Hide/Show work but not the divRow version?
What I'm trying to do here is simultaneously hide 1 or more rows
(possibly with nested divs as well).
This would allow for an elegant an well performing base for an html base
treetable (but I guess that's not relevant).
Any suggestions appreciated.
TIA
Fermin DCG
<html>
<head>
<script>
function show(obj) {
document.getElementById(obj).style.display =
(document.getElementById(obj).style.display=='block') ? 'none': 'block';
}
</script>
</head>
<body>
<div style="display: block" id="divTable">
<table border="1">
<div style="display: block" id="divRow">
<tr><td>Hide / Show row</td></tr>
</div>
<tr><td>Do nothing row</td></tr>
</table>
</div>
<br>
<input type="button" onclick="show('divTable')" value="Hide/Show table">
<input type="button" onclick="show('divRow')" value="Hide/Show Row">
</body>
</html>
- 10
- How to refer to a function in a frame from another frame?Hi,
I have this master frameset page
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Account Creation</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;
charset=ISO-8859-1">
</HEAD>
<frameset rows="0%, 100%">
<frame src="creation_result.php" name="createAccount">
<frame src="display_result.php" name="content">
</frameset>
</html>
>From within the "createAccount" frame, I want to call a function
defined in the content frame. The content frame's HTML is roughly as
follows:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Account Creation</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;
charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="../styles/styles.css">
<script type="text/javascript" src="../scripts/util.php"></script>
<script type="text/javascript" src="../scripts/util.js"></script>
<script type="text/javascript">
function setMsg(msg) {
document.getElementById('m').innerHTML = msg;
} // setMsg
</script>
</HEAD>
<BODY>
...
</body>
</html>
How do I refer to the "setMsg" function in the content frame from the
other frame (named "createAccount"?
Thanks, - Dave
- 11
- JS/CSS QuestionHi,
I've been playing with these cool scripts: http://jstween.blogspot.com/
and had good results!
What I'm trying to do, is tween the background color of a table row
onmouseover and onmouseout.
The code is working fine apart from one small bug.
Have a play here first:
http://www.muonlab.com/test/test.html
Move your mouse over the data row vertically and observe a sexy tween!
However when you move your mouse across the row and your mouse crosses a
</td><td> boundary is sends the onmouseover/onmouseout mental!
Why is this?
I'm assuming its just some html/css sillyness? Is there something I can
easily do in the html/css to stop this, or is that just the way things are?
:(
Hope someone can help!
Thanks
Andrew
- 12
- How to add parameters to a function passed as a paramter?Here's an interesting problem...
I have 2 functions, aFunc() and bFunc(). I call aFunc() passing a call
to bFunc() as a parameter. Function aFunc() executes bFunc(). Function
bFunc() lists the parameter values passed to it.
OK, here's the twist...
I want to add some parameters to bFunc() from inside aFunc(). Can that
be done?
Sorry no prizes, except the satisfaction of the solution :)
Regards,
Steve
aFunc(function() { bFunc(); } );
function aFunc(f) {
var x = 1;
var y = 2;
// add x, y as parameters to function f()
// ???
// execute the parameter function
f();
}
function bFunc() {
for (var i = 0; i < arguments.length; ++i) {
alert(arguments[i]);
}
}
- 15
- SV: Moving a string from client to server (JS -> ASPX)>> In the client.js file i declare the
>> following variable.
>>
>> ...
>> var str = "info";
>> ...
>>
>> In the corresponding ASP file called
>> server.aspx.cs i declare two following
>> methods.
>>
>> ...
>> protected void Page_Load (
>> object sender, EventArgs e){...}
>> public void SomeThing () {
>> ...
>> String data;
>> ...}
>> ...
>>
>> The objective is to _SOMEHOW_ ensure
>> that the value of data (in the CS file)
>> is obtained from str (in the JS file).
>>
> It cannot be done without another HTTP request (can be XHR) because the
> two
> don't know about each other. If you don't know that by now, you should
> get
> some basic knowledge about client-server architectures first, before
> messing
> around with them.
Thanks! Trying not to be impolite i still need to point that the question
was "how can it be done", not the opposite. Are you suggesting that
the only (recommended) way to to request (another) page from the
server? It would be doable in my case, of course, but i'd prefer not to
send in the string using http://.../file.aspx?str=info.
Perhaps i could bake it in the sender object. What do you think?
- 16
- Dynamic Web Forms[Cross-posted to c.l.js. Follow-ups set to c.l.js.]
On Wed, 27 Oct 2004 09:57:07 -0400, Harlan Messinger
<email***@***.com> wrote:
> "Michael Winter" <email***@***.com> wrote in message
> news:opsgi5triix13kvk@atlantis...
[snip]
>> [...] something like:
>>
>> .required {
>> background-color: #ff9f9f;
>> color: #000000;
>> }
>>
>> <input class="required" ...>
>>
>> would be more appropriate.
>
> It would also be a static solution.
To a certain extent, yes. Scripting could alter the class attribute
dynamically, but in that case, it would be best done entirely dynamically
(unless Chris' suggestion was used).
> He's asking for a dynamic solution, where the appearance of the page
> changes depending on the user's initial interactions.
To be honest, I didn't read the entire original post, just the follow-up
in c.l.js that sent the OP here. I should have.
> If someone directed him here from c.l.js, it must be because he didn't
> understand this.
Perhaps. You'd have to ask that person.
[Changing CSS rules]
>> On some arbitrary run-time trigger, no there isn't, but I don't think
>> that's what the OP is looking for.
>
> It's exactly what the OP said he was looking for.
Then my mistake. I assumed the direction to ciwas was correct.
The optimum solution would depend on the structure of the form.
To the OP: do you have a URL to demonstrate the form?
[snip]
Mike
--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
|
| Author |
Message |
Mike

|
Posted: 2007-10-11 1:33:55 |
Top |
javascript, MM_validateForm() documentation
Does anyone have documentaion on MM_validateForm() function in
Dreamweaver.It will save me a lot of time.
Thanks
Mike
|
| |
|
| |
 |
Thomas 'PointedEars' Lahn

|
Posted: 2007-10-11 5:39:00 |
Top |
javascript >> MM_validateForm() documentation
Mike wrote:
> Does anyone have documentaion on MM_validateForm() function in
> Dreamweaver.It will save me a lot of time.
Probably Macromedia^WAdobe as one; RTFM. That said, you should avoid
pre-installed Dreamweaver script snippet code because of its quality
or rather the lack thereof.
HTH
PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f806at$ail$1$email***@***.com>
|
| |
|
| |
 |
| |
 |
Index ‹ javascript |
- Next
- 1
- 2
- Creating functions dynamicallyHello,
Given an expression f = '2*x+3' from a user input
I would like to do some sort of
function userFunction(x):
return f(x)
is it possible with Javascript ?
Thanks for your advises
Regards
Salvatore
- 3
- Script problem/question with codeThis may be easy for most but I can't get this thing to work. I
believe I followed all the instructions but when I click on the link
no window opens just the default IE page cannot display. Here is
exactly what I entered in the link dialog:
<a
href="javascript:popImage('http://www.sambuccibros.com/carseat.jpg','New
Car Seat')">
Is this my problem? Please help.
P.S. I am using Dreamweaver MX 2004
BELOW IS THE INSTRUCTIONS AND EXACTLY WHAT I COPIED AND PASTED BETWEEN
THE HEAD TAGS AS PER THE INSTRUCTIONS:
==============================================================
Script: Auto-Sizing Image Popup Window
Functions: Use this script to launch a popup window that
automatically loads an image and resizes itself
to fit neatly around that image. The script also
places a title you set in the titlebar of the
popup window. Any number of images can be launched
from a single instance of the script.
Browsers: NS6-7 & IE4 and later
[Degrades functionally in NS4]
Author: etLux
==============================================================
STEP 1.
Inserting the JavaScript <script> In Your Page
Insert the following script in the <head>...</head> part
of your page. Take special care not to break any of the lines;
they must be exactly as shown.
Set the variables as per the instructions in the script.
<script>
// Script Source: CodeLifter.com
// Copyright 2003
// Do not remove this notice.
// SETUPS:
// ===============================
// Set the horizontal and vertical position for the popup
PositionX = 100;
PositionY = 100;
// Set these value approximately 20 pixels greater than the
// size of the largest image to be used (needed for Netscape)
defaultWidth = 500;
defaultHeight = 500;
// Set autoclose true to have the window close automatically
// Set autoclose false to allow multiple popup windows
var AutoClose = true;
// Do not edit below this line...
// ================================
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var
optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var
optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;
function popImage(imageURL,imageTitle){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
writeln('var isNN,isIE;');writeln('if
(parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');writeln('if
(isIE){');writeln('window.resizeTo(100,100);');
writeln('width=100-(document.body.clientWidth-document.images[0].width);');
writeln('height=100-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width,height);}');writeln('if (isNN){');
writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.images["George"].height;}}');
writeln('function
doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="no"
onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor=000000 scroll="no"
onload="reSizeToImage();doTitle();self.focus()"
onblur="self.close()">');
writeln('<img name="George" src='+imageURL+'
style="display:block"></body></html>');
close();
}}
</script>
==============================================================
STEP 2.
Calling the Image Popup from Links in Your Page
This is the form of the function:
popImage("url_of_image","title_of_image")
Use the relative or absolute path of the image where we show
url_of_image. This is the url of the image you wish to show
in the auto-sizing popup window.
Use any text you wish where we show title_of_image. This is
the title that will appear in the titlebar of the popup. (Note:
do not use single- or double-quotes within a title.)
Caution: Be careful to place both values within quotes.
See the samples below.
Example 1: Launching from a text link
<a href="javascript:popImage('http://SomeSite.com/SomeImage.gif','Some
Title')">
Click Here
</a>
Example 2: Launching from an image link
<a href="javascript:popImage('http://SomeSite.com/SomeImage.gif','Some
Title')">
<img src="YourImage.gif" border="0">
</a>
Example 3: Launching from a form button
<form>
<input type="button" value="Click Here"
onClick="popImage('SomeImage.gif','Some Title')">
</form>
============================[end]=============================
- 4
- Need an ascii image format!Hi,
I developing a system using JSP. People familiar with this technology
know that ServerPages are easier to maintain than Servlets, but they
can only have ASCII output.
With that as the backdrop, here's what I want to accomplish. I want
clicking on a link to cause a script to be executed on the server but
-->I don't want the browser to jump to another page<--.
A solution that I conceived was to have javascript like
someimage.src = 'http://myscript'
This will accomplish the task and it would be great if myscript return
an image of a checked checkbox! But, because of JSP limitations this
would need to be an ASCII image.
So my question is twofold:
1. Are there convenient ASCII image formats?
2. Is there another way to accomplish what I want (trigger some action
on the server without jumping to another page and using js to display
a sensible response - something like a check)?
Thanks!
Bura
- 5
- variables should be declared in examples in the FAQAssigning to undeclared variables is considered a bad practice (I hope
I don't need to explain the reasons here). The examples in the FAQ
should declare the variables it uses:
http://www.jibbering.com/faq/#FAQ4_15
> DocDom = (document.getElementById?true:false);
http://www.jibbering.com/faq/#FAQ4_42
> wRef = window.open("http://example.com/page.html","windowName");
Nickolay
- 6
- setTimeoutDr J R Stockton said the following on 5/20/2007 11:37 AM:
> In comp.lang.javascript message <email***@***.com>
> , Sat, 19 May 2007 17:53:09, Evertjan. <email***@***.com>
> posted:
>> timeout = setTimeout('hideElement([object])',2000);
>>
>> which would try to execute after two seconds the string
>> 'hideElement([object])'
>> which cannot be parsed by the js engine.
>
> Nothing AFAICS intrinsically wrong with executing that string, except
> for the effect being unlikely to be as hoped for.
>
> function hideElement(X) { alert(X) }
> object = 4
> hideElement([object])
>
> alerts 4. It even works, for me, with Object.
>
The difference is that in Evertjan's code [object] refers to an Object
in the page itself.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
- 7
- 8
- Restricting user input without "disabled"Hi
I have two "totals" inputs whose values are dynamically calculated.
For obvious reasons I don't want users to be able to edit the
information in these. However, I do want this total passed to the next
page so I can store it. When I set the input to "disabled" it does not
pass it's value. Is there another way I can do this?
I was thinking about using an onFocus event to set the focus to
another field but is this the best option? Any help appreciated.
cheers
Jeremy
- 9
- extended privileges for local appHello,
Is it possible to get extended privileges for a local application,
without asking if possible, like any non/java-javascript app would
be able to ?
Thanks
- 10
- Write into iFRAME ( IE 6 Bug?)Here's the code:
<html>
<body onload="setTimeout('Writing();', 1000);" topmargin=0>
<form id=Form1>
<iframe id="mainchat" src="about:blank" height=200></iframe>
<script language="javascript">
function Writing(){
window.frames[0].document.write('<a href="javascript:void(0);"
onclick="javascript:alert(\'alert\');">writing</a> ');
setTimeout('Writing()', 3000);
//alert('firing');
}
</script>
</form>
</body>
</html>
If you execute it in IE 6.0 and click on the WRITING <A> tag being
printed every 3 seconds in the iframe, it will stop writing into
iFrame, the setTimeout will still be firing but document.write command
will be ignored!!!
Works perfectly in IE 7 and Firefox.
Is there any way to make it work in IE 6 ???
- 11
- Mashing - using services on the users computer.Hi All, I have wrapped SQLite, the open-source relational database and
ImageMagick, the open-source image manipulation library into a
client-side web-operating-platform that is accessible directly from
Javascript running in the browser using XmlHTTPRequest. The platform
also includes controlled private access to the file system, allows you
to cross-site script without the need for a proxy-server on your site,
and also lets you set up event handlers for when your site is not
accessible.
The client application is called eclayer and is available from
http://www.eclayer.com .
Works on Windows & Linux. Tested extensively on Internet Explorer,
Firefox, and Konqueror. Sample code is provided.
Feedback appreciated. Thanks - John Sheridan.
- 12
- parent.frames['xxx'] undefined in MozillaHello all;
I got my javascript script working in IE and am now testing it in
Mozilla/Opera. I am trying to change the .cols property of a frameset and am
having trouble. I put the following alerts in my script to track down the
problem:
alert("parent = " + parent);
alert("parent.frames = " + parent.frames);
alert("parent.frames['xxx'] = " + parent.frames['xxx']);
alert("parent.frames['xxx'].cols = " + parent.frames['xxx'].cols);
The above work work fine in IE, but the alerts referring to ['xxx'] (the
name of the frameset) return "undefined" in both Mozilla and Opera.
FWIW, altering the contents of one of the *frames* via:
parent.frames['ccs_logo'].location = 'ccs_logo.htm'
works OK in IE, Mozilla, and Opera.
The only difference I see is that "xxx" is the name of a *frameset* and
"ccs_logo" is the name of an actual *frame* within the frameset.
I have searched google and read several web pages on frames/framesets and,
from what I've read, these statements should work OK. Can anyone tell me
what I'm overlooking?
TIA.
Charles...
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.687 / Virus Database: 448 - Release Date: 5/16/04
- 13
- Converting text to DOM objectI have an XML file hosted by my ISP free web space. It naively treats
the file as text/plain. I would like to convert this data into a DOM
object. So far my googling has turned up nothing, although looking over
the DOM manual on Mozilla I came up with:
function convertDOM(text)
{
var lines = text.split("\r\n");
var dom = document.createDocumentFragment();
for (var i = 0; i < lines.length; i++)
{
var node = document.createTextNode(lines[i]);
dom.appendChild(node);
}
return dom;
}
The returned object is not treated as an DOM object.
Anything I am missing / A different approach maybe?
Any help is greatly apprecited.
Adonis
- 14
- Need a start for this projectHi,
Although I'm very familair with C++ programming, I'm having some problems
coding up a piece of JavaScript for my sister in law.
The problem is the following:
From a website I need to select from a combobox one of the items x(1)..x(n)
When selected a new window must pop up that describes more details about the
selected items x(i).
Items in the combobox must be created from objects that also describe the
details.
Here starts my problem...I know how to define objects x(1)..x(n) and how to
create a combobox from it.
But how to start a new page that shows the details. In fact, how can I
access the objects that exist in the first window from the second window?
This is the first question...I have plenty more..but I think when I
understand this piece I might find out all the answers myself.
Please help (I feel ashamed that I don't know the answer as a pretty
experienced C++ programmer)
Frank
- 15
- Javascript on Linux serverI currently have a page that is running from a windows based server
with frontpage extensions installed. My mouseover script works great.
I am now in the process of developing another page that will run from
a linux server that will not have the frontpage extensions installed.
My question is, does the differnt platform matter with javascript.
Will the exact code that is working on the windows server work on the
linux server?
Thanks in advance,
Aaron
|
|
|