Give Filepaths To XmlDoc.load()?
Sep 16, 2010
I am making a change to a .hta file. I did not write it, so I am trying to familiarize myself with it, and there doesn't seem to be very much documentation, so I have been stuck trying to figure this out on my own, but to no avail. Anyways, the code is opening an XML file. Previously, this XML file has always been in the same directory as the .hta file that was opening it, but then writing files to the program files directory is a bad idea, so we decided to change that. So how do you give a specific path to the load() function to tell it where to find an xml file? I have tried a variety of different things but they always give me an error. I'm not sure why it only seems to work if the XML file is in the same folder as the .hta. If there is a way to do this, is it possible to do it with environment variables too?I want to specify the temp folder. I have never done anything with javascripting before, so I don't know a whole lot about it. I was trying to find documentation for it, but there doesn't seem to be anything very comprehensive, like there is for other major languages like Java and C and C++ and etc.
View 3 Replies
ADVERTISEMENT
Aug 8, 2005
var xmlfileLoaded = xmlDoc.load(xmlFileName);
and we noticed that this files are not cached in numbers of clients Internet
Exporer v6.
We see in httprequest log this request.
We also tried to gzip the request but probably xmlDoc not allowed it.
View 1 Replies
View Related
Dec 21, 2006
I shoud give a "value" to an DIV's ID that change following the name of the
directory where the file is.
For example the file is here:
www.website.com/web/01/file.html
Is it possible with javascript to give the value "01" to the DIV's ID?
<div id="namedirectory"something inside </div>
so it could be readed as:
<div id="01"something inside </div>
I found in internet this one:
<script language="JavaScript">
fullpath=location.pathname;
document.write(fullpath);
document.write('<br />');
result=fullpath.split("");
document.write(result[5]);
</script>
it's something that could work?
I don't know how to recall the value in the ID...
View 6 Replies
View Related
Apr 15, 2009
I have two functions. How to give onchange events.
function toggleDivs(c) {
-----
---}
function disable3checkboxes(event, srcElement) {
---
---}
View 1 Replies
View Related
Jul 23, 2005
I have a page with checkboxes generated by a script. Users are suppose to select the checkboxes and click on a button to process their selection. The codes work fine except when I only have one checkbox on the page. Then it will not register sReturn.....
View 6 Replies
View Related
Jul 20, 2005
I would like to have just the top row cells of a table to have borders - is
this possible/easy? or do I have to make the title row another table?
View 2 Replies
View Related
Mar 24, 2010
How do i acces variable: id inside <a href.. and append my querystring variable to it?
example
<div id="email">
<a href="Emaillist_3212.html?id="><img alt="list" src="pics/email32.png"/>
<span class="name">Emails (?)</span>
[Code]....
View 4 Replies
View Related
Aug 17, 2010
I'm working on this page: Work in progress
I'm using this tutorial:
On my work in progress link, I have two players on one page that just replace each other. The problem is with the left and right navigation arrows on the picture viewer. When you switch to the video player (grey video button on below player) the navigation arrows remain, I want them to only appear on the picture viewer. I think I can do this using z-index in css but need to give the two arrows some id's so I can select them. I can't seem to work it out in jquery! How to give the two images id's (see code below) or even better, make them only appear when you are on the picture viewer.
//** Step Carousel Viewer- (c) Dynamic Drive DHTML code library: [URL]
//** Script Download/ [URL]
//** Usage Terms: [URL]
//** Current version 1.9 (July 28th, 10'): See [URL] for details
jQuery.noConflict()
var stepcarousel={
ajaxloadingmsg: '<div style="margin: 1em; font-weight: bold"><img src="ajaxloadr.gif" style="vertical-align: middle" /> Fetching Content. Please wait...</div>', //customize HTML to show while fetching Ajax content
defaultbuttonsfade: 0.4, //Fade degree for disabled nav buttons (0=completely transparent, 1=completely opaque)
configholder: {}, .....
View 11 Replies
View Related
May 2, 2009
I have a text box to which I give focus when a page loads. There is more than one submit button on the form. When I enter something in the textbox then hit Enter the first submit button on the form is activated. Is there some simple code I can use to shift focus to the submit button I want as I press Enter?
View 10 Replies
View Related
Aug 1, 2009
i have a page with lots of checkboxes and hidden fields. When i tick a checkbox i want it to give the hidden filed a value. But give it no value if it is not ticked. For every checkbox i have a hidden field is with it. Both the checkbox and the hidden field send information. I have used some js scripts but they don't seem to work with more than one checkbox.Example:
<input type="checkbox" name="box1" id="box1" value="4th July 2009,">
<input type="hidden" name="price1" id="price1" value="0">
So when box1 is ticked it then gives price1 a value. But if not ticked then the value remains at 0. I want it to give a value of 699.There will be about 100 checkboxes and hidden fields on the page. Also onclick behaviours do not work because it may still send the information if the checkbox is not checked.So for the next checkbox and hidden field i use box2 and price2.
View 1 Replies
View Related
Oct 5, 2009
I was wondering if there was any way I can give a child element, preferably the first one, a link through a parent element with an ID. code...
View 6 Replies
View Related
Nov 30, 2011
I have a image which need to be cropped from edges slightly to give a hexagon shape. see the attached image to see how the appear ance should be.
Would lik to crop images while loading on to this frames/boxes.
View 3 Replies
View Related
Jul 25, 2006
I found this matrix animation and was thinking it would be neat to run inside an inset table within its background with text over it and an image behind the vertically running text, though as it is right now it over takes everything on its own, how would it be possible to place it in a layer, I am referring similar to z-indexing it, also I think its background would need to be made semi-transparent or simply removed and then the tables background used instead? Code:
View 4 Replies
View Related
Jun 11, 2010
I read this article: [URL]...I want to Combine this example with the example given in Part 1 to give this table of revenues alternating row colors!
Here are my combining codes: It is quite clear there must be something with them because I can't see the expected result after running. Help me find that mistake.
[Code]...
View 1 Replies
View Related
Feb 18, 2005
I have a form that opens a new window when submitted.
However, many people don't like new windows opening. So, I would like to create an option that would let users control whether the form result opens in a new window or in the same window. Can this be done?
I was thinking of adding a checkbox and if it would be chacked = new window, not checked = same window. How can I accomplish this?
View 2 Replies
View Related
May 16, 2006
Exactly what i want to know is, In my product we are using
xmlhttp request to retrive some data from the server, And Im using IE
browser, its working fine in IE.
Now i want to work with netscape,I dont know how to pass the xmlhttp
request in Netscape. i got some code like below for netscape for
xmlhttp
var oXML=new XMLHttpRequest();
oXML.open("GET","http://google.com",false);
oXML.send(null);
document.write(oXML.responseText);
but its not woking, it shows some uncaught exception error.
So can u suggest me some code for xmlhttp request for Netscape,Im using
version 8.1 netscape browser.
View 9 Replies
View Related
Feb 18, 2009
I am working on a problem that wants me to use a for loop to give an array a random number for each of it's elements (total of 10) and then using a second loop to add them up and display the result.
<script type="text/javascript">
var sum;
var i=0;
[code]....
View 3 Replies
View Related
Jan 26, 2009
I'm using the following code
Code:
<script type="text/javascript">
function checkField() {
var filebox = document.getElementById("File");[code]...
to try and prevent users from uploading files in an <input type="file"> that have characters that are not conducive to downloading. The problem I'm finding is that the code above seems to look at the whole path that is in the input box as opposed to just the file name. I know absolutely nothing about javascript, does anyone know how I can manipulate this code to have it just look at the file name?I've also posted this question at the following links: http:[url].....
View 3 Replies
View Related
Aug 26, 2009
user select a date/time for an input form. Once this form has been submitted i will use php to convert it into a unix timestamp for the db.
View 3 Replies
View Related
Mar 1, 2010
In my application having so many datepicker contols.where should i give this properties commonly.
how should i pass dynamically in my textbox ID (or) which .js file i will set this properties commonly.
<script type="text/javascript">
$(function() {
$("input[id$=txtDate]").datepicker({
changeMonth: true,
[Code]...
View 1 Replies
View Related
Dec 7, 2009
If number is more than 24 digits, modulus operator is not giving correct output [code]...
View 4 Replies
View Related
Aug 10, 2010
I basically want the values from the checkboxes to output to a div, I also want to give the check boxes a numerical value eg:
if monday conference selected that would cost
if Tuesday conference selected theat would cost
and output a total based on the selections.its basically confirming the users choices and outputting the total cost to them.I have made a start already but Ive hit a point where Im absolutely stuck.This is the form
<div class="form">
<h1>Online Bookings</h1>
<form id ="theForm" action="mailto:" method="post" enctype="text/plain" ><table>[code]....
View 4 Replies
View Related
Mar 17, 2009
I would like to add a prompt when a visitor of my website leaves the site or closes the browser.The prompt should be to optionally give his/her feedback about the site.
--> User can fill a simple form with comment & email id --> In this case, the comments should go to our mail id
--> The user can also leave the site without giving the feedback, saying NO to the prompt.
How can I create this?
View 3 Replies
View Related
May 13, 2009
I am trying to give the client an option of having a blog set up withtheir website by using a select tag and some javascript.Problem is the js is not updating the variable - so I must have got something wrong.This is my select code ( it uses a bit of php at the top of the page) :
$N_blog_cd = "n";
$blog = array(
"y"=>'Yes',
[code]....
View 6 Replies
View Related
Feb 16, 2010
I'm using ajax to grab a response from a PHP page, on success, the ajax sets a variable. After the line that calls the ajax function is the line the returns the variable (a global variable). Problem is, because the variable is returned right after the ajax function is fired, it doesn't give the ajax enough time to set the variable. The work around I've thought about would be using the ajax function as a variable, and returning that variable in the initial return line.
Here's some code for reference:
The function that will return the response I'm trying to collect:
The ajax code:
View 2 Replies
View Related