Linked File Properties
Jul 23, 2005
I would like to have the properties of a linked file appear on the page
linking to it, so that the user can see the date last modified and file
size. I.E.
<a href="filename>Click here to download file: size <script to insert
file size>, last modified on <script to insert date last modified></a>
Is this possible using only javascript. I don't have access to
PHP/ASP/anything else useful on the server. Perhaps you might know of
an alternate way to achieve my aims?
View 2 Replies
ADVERTISEMENT
Nov 13, 2009
how to add extra properties to html elements as I was storing data in html attributes. After looking at some others code including Raphael and this addEvent code. [URL] They seem to treat objects just like an array. obj[property] = value; This would have been extremely helpful to know previously as I have needed to be able to include variables in property names - but have resorted to making the whole thing a string and calling exec() on it.
View 2 Replies
View Related
Jul 23, 2005
I have an html file which contains link to 4 reports ( html files
). Instead of letting the user open one link at a time, and then
printing the report , I want to print all the reports with a single
button click, say on pressing a button "Print All" .
I have found out a way, in which the reports can be printed , but
the print dialog box is coming up each time( eg. for 4 reports it is 4
times, and for n documents it would be n number of times ) ; which I
find very irritating . I would rather prefer a single print dialog box
coming up for n number of reports .
View 1 Replies
View Related
Jul 20, 2005
Is there a good linked list implementation in the public domain? Or
that someone on this group has already written that they'd like to put
in the public domain, right here on this newsgroup?
View 3 Replies
View Related
Mar 1, 2011
I am trying to use a linked list to add a song. 'A' is supposed to add the song to list of objects. My problem is that every time I append a song again it seems my list gets reset. Also on the side. How come I cant use the showFromMeOn method down in 'P'?
[Code]...
View 14 Replies
View Related
Jul 2, 2010
I have a text box labeled "Number of pages" and a select box labeled "Page List"
Requirement: I want tht on entering any integer value in the text box that many pages shall be populated in the list box
[Code]....
View 3 Replies
View Related
Jul 23, 2005
I have a select box populated with about 1000 names. What I would like
to do is to have a text box available that a user can type in say "mi"
and have the select box jump down to the first entry starting with
"mi", i.e. "Michael" followed by "Mike". Code:
View 3 Replies
View Related
Nov 27, 2009
This script and code works great, but in order for me to finish, I need a way of passing to the next PHP page which check box is checked. Currently, it is just passing a single value (1, 2, 3, 4, 5, or 6) depending on the last box checked. I need a way to record which check boxes are selected.
<html>
<head>
<script type="text/javascript">
var majors = {
"001 - Exchange"
[code]....
View 9 Replies
View Related
Jan 4, 2010
I am trying to build a linked drop down menu script with descriptions. Meaning that there are 5 drop down boxes all linked together. So when somebody choses an option in the first drop down box, the options in the second box appear. And depending on which option they choose there, more other options appear in the third box and so on.
At the end (or after every drop down menu box) there must be a description area (either by using a textarea or just some space for descriptions and a table) where text will appear depending on the chosen options.
I have the script with the linked drop down boxes, but I cannot seem to add a description box. Everytime I try, the whole script gets messed up.
This is my script:
Code:
<table>
<tr>
<td width="680">
[Code]....
View 14 Replies
View Related
Aug 11, 2010
I have a real-estate site of a client's and it has a big bug which is beyond my scripting skills.The user submits a search form and is shown the results of the property's (houses). They then click on the desired house and are taken to the page which the relevant content. All good.Then they use the browser back button, as everybody does, and is taken back to the search results, page 1 of results, or page n ofBUTIf the user selects another page of results from the navigation e.g. [1] [2] [3]instead of directing the user to the page n of results page, the user is taken to the last viewed property (house) page.I know alot of you must be thinking its me incorrectly scripting...but the wierd thing is that this bug only occurs in FF and doesn't occur in IE...(only checked 8).It's doing my tits in and my client is making an issue of it. BTW I'm using VBscript aswell to insert variables (pageID).
View 1 Replies
View Related
Jan 31, 2010
I'm making a portfolio-style web and there is a Projects section in it. Each project has its own html and a button which links to a new html with a trailer. Now, the new html with a trailer is basically the same for all the projects. It has a flash player embedded in it which has a different project video in each frame.
I've created a function in the trailer html which reads like this:
function reklam1()
{
var flashMovie=getFlashMovieObject("player");
flashMovie.GotoFrame(1);
}
I want to make sure that if I click on a link in the projects html it will open this new trailer html and activate the desired function which will push the flash player into a corresponding frame.
How do I have to make the link to be able to do that? Or is there any better way how to get the player to a desired frame on startup using javascript/html?
View 1 Replies
View Related
Feb 3, 2010
I found a great piece of Javascript on this forum for linked random images with rollover effect but I can't figure out how to add "no border" to the script as I do not want to have a border around the linked images.
[Code]...
View 4 Replies
View Related
Jul 9, 2010
To have multiple linked sliders that all share a maximum value, for example, I would have 10 sliders, each set to 50, with a pool of 10 additional points to spend. If I assign all 10 points to 1 slider, the other 9 are locked out, or I could spend 1 point on each slider.
View 1 Replies
View Related
Jan 17, 2009
I want to give a code snippet to partnering websites, so that the script on their page draws from a page on my server. I think "quote of the day" type widgets use this.I copied this code from a site and it works for them, but when I switch the url to a php page (containing only text wrapped in a div) on my site, it doesn't work. I realize this might also be a php question, but I didn't want to cross-post. Does it have something to do with the "jscript=1" variable being passed?
View 2 Replies
View Related
Jul 19, 2011
I am trying to have a text link above Google Maps link to a marker on my map. When the link is clicked, the map will automatically center itself on the marker. I already have the custom markers and locations, I am just not that good with Javascript and jQuery to figure it out.
View 3 Replies
View Related
Oct 29, 2009
how to set a variable depending on the link that is clicked than pass it to php.It's for a rating plugin - The links will be numbers 1 - 5 and need to pass the integer to php when clicked.. in background.I am assuming I would use "XMLHttpRequest" so I can reload - send variable, and display in the background.Then in php have something like $vote = GET_(vote).
View 1 Replies
View Related
Apr 24, 2010
I've got a table in an html document im writing, and i have two separate cells which need to pull parallel information. For example, a book title and a summary. The book title and book summary need to be from the same book. Ok, so i have one array with 20 lines. The first ten lines are the "titles" and the last ten are the "summaries". Ok, then i have this
var i = Math.floor(10*Math.random())
var j = i+10
Now, using this same external array, in my html file i need one cell to display variable i and another cell to display variable j. I need to somehow use this command,
[Code]...
View 2 Replies
View Related
Mar 15, 2011
Table contains two select boxes that are linked to each other and a textfield.I would like to make it flexible so that I can have a button to add a Row and delete a Row.I tried this :
Code:
<script type="text/javascript">
var clone;
[code]....
View 2 Replies
View Related
Jun 16, 2009
I am trying to assess why the slider that I've linked to in the head tag of my source code will not load properly on my page. My site's link is : [url]
View 1 Replies
View Related
Sep 13, 2011
I have a form with a postcode field in it
I want to add a button or text link next to this field which if clicked on goes to the google maps url querying that postcode
i.e. if the postcode text in the field (form not submitted) was SW1A 1AA then without submitting that form there would be a button / link next to it which when clicked on went to [URL]
View 6 Replies
View Related
Dec 1, 2011
Any code to create a function and form to make the position of a button change dynamically based on a mouseover event? Whereby a viewer's cursor will chase the button around an IE page for infinity! I would prefer to do this without the need for any plugins if at all possible, and it does not need to be cross-platform, just IE is fine.
View 1 Replies
View Related
Dec 14, 2011
I am working in Dreamweaver CS4 with both HTML and Javascript. I created a preview area and some thumbnails beneath. Each thumbnail is linked to a full size image. So far, so good. I'm attempting to follow a Javascript tutorial to make a lightbox. I added CSS rules and the javascript code (below) in the hopes of having my thumbnail show the image in the clickable preview area when hovering. However, my fullsize image does not display in the preview area. Interestingly, when I hover over the preview, I see at the bottom of my browser that it is still linked, just not displaying. The preview area is blank.
Javascript:
View 1 Replies
View Related
Apr 11, 2005
There's no native linked list implementation in JS. I'm wondering if it would be worth it to implement one.
I'm using a lot of insertions and deletions with arrays of around length 5. How fast are insertions and deletions in JS native arrays compared to an optimized (but not native) linked list implementation in this situation? How about arrays of length 10?
View 1 Replies
View Related
Jun 6, 2011
I am building a site of which I would like the contact information and form to pop up from the button on the menu/header frame into the main frame as a lightbox ...no matter which page is loaded in the main frame.
I was trying to experiment with the archived "jQuery Contact form for your website" tutorial from web devlopment blog . com. (I didnt want to post a link to it as I dont want to possibly flag the moderators)
Go to [URL] to see the layout and what I am going for.
View 1 Replies
View Related
Aug 11, 2010
Im using a Javascript to load content into a div tag when a link is clicked, but how will i be able to make content load into a div on another page when the linked is clicked.for example, i click the link -> then a new page opens -> and in that page the content is loaded in a div tag.but onload won't work, i want it to load with like [URL]
View 11 Replies
View Related
May 18, 2010
I am very new to javascript and have only just started looking into it after working quite a bit in html, css and php.I have a working image banner on my webpage that switches between 1 of 2 images every 7 seconds. This all works fine but i now need to make the second image 'pcm2.jpg' a clickable link where as the first image 'pcm.jpg' which starts off the image rotation in the html page has no link. I have tried using 'document. rollbanner.href =' inside the function but that hasn't helped. Is that because the first image in the html page has no href value to begin with? If so how do i get around this as i dont want the first image to have a link, only the second one.
View 1 Replies
View Related