How To Share User-object Between Documents?
Sep 2, 2004
Could anyone tell me how to create a user-object using javascript in a HTMl page and access the same object in another HTML page? Assume that i would like to create the user-object myObj in HTML page1, set some value to its property and then i would use location.href to load HTML page2 in the same window. Is there a way to access the user-object myObj in page2 script and read its property value?
View 4 Replies
ADVERTISEMENT
Jul 20, 2005
Can anybody share the code for a word counter for the textarea user input? what if max characters are 256?
View 1 Replies
View Related
Jun 1, 2010
A web application is essentially one page with a bunch of popups that add and manage the data accumulated in the main or first page. The first page loads the jQuery library along with a bunch or plugins.
The modal popups contain an iFrame whose source is a different page. The source page also contain the jQuery library and pretty well the same plugins in most cases. The pages all use jQuery as a base for most of its client side processing.
At times the modal popups can be 4 or 5 deep. One popup is launched from the previous etc..
These libraries might total some 300k bytes or so.
Is there some way to avoid having to reload all the libraries each time a page is loaded. How can jQuery on the main page be used by all subsequent page.
I'd have to be using the libraries as it they were loaded as part or the page and not having to refer to the parent objects for example.
Could some script be run at the start of each page to load the javascript library form the previous page?
Can the jQuery library or anypluginwritten using jQuery beregardedas a singleJavaScriptobject that can be replicated from the parent page?
View 1 Replies
View Related
Jan 14, 2010
Yesterday I made a tabbed auto-switching ad block in ActionScript. You can see it here:http://vtribes.com/inc/swf/services.htmlThis morning I decided I needed some fall back content for those odd types who still refuse to either use Flash plugins, or don't have the latest version. So I came up with a simple CSS/JS table with tabs to replicate the Flash movie, and thought I'd share it for anyone who might be interested.You can find it here:http://vtribes.com/inc/tabbedTable.htmlIt's very simple, but would work just fine if you wanted a tabbed dialog in HTML. It will also explain some rudimentary points in CSS, JS and HTML.
View 2 Replies
View Related
Apr 2, 2010
I have a web page that is not and will not be hosted on a web server. So no PHP, ASP solutions will work here. The method of access is File://. We only run IE 7/8 so no solutions that are firefox only. Here is what I want to do: Use javascript to build a table by reading a XML file stored in the same folder. When I try to use something like:
[Code]....
View 7 Replies
View Related
Jun 4, 2010
I had placed FB share button in my webpage but its not displaying properly in IE6 and lower versions.
View 4 Replies
View Related
Sep 22, 2010
I had a original function in this format/syntax:
Code:
GlobalFunction(){
InnerFunction(){
// ... long definition here ...
[Code]....
Other words the innerFunction behaves like it is global and has not shared variables with myClosure!
View 14 Replies
View Related
Nov 18, 2010
I've been writing a slideshow script that I've had working perfectly on my mac in Chrome and Safari, however I went to look at it in IE8 and lo and behold it falls over. It says 'object doesn't support this property or method' in relation to the new SlideShow line in the main() function.
View 3 Replies
View Related
Oct 27, 2011
how to animate 1 individual element in a group of elements that share a specific class.
For example, say I have 6 buttons in a row that share the class="button"
They are all styled the same in CSS with .button { etc....}
And what I want to do is animate them when hovering, but only the one I am hovering over at the moment. For example, I've tried this:
$(".button").hover(function() {
$(this).stop().animate({ marginBottom: "200px"}, 800);
},function() {
$(this).stop().animate({marginBottom: "100px" }, 800);
});
Problem is, obviously, this animates all 6 buttons. I could write individual functions for each element but that seems wasteful. I'm assuming there is a way to do this in a more efficient manner.
View 2 Replies
View Related
Aug 9, 2011
I'm trying to change two items that share a common variable with an onclick. This is what I've been attempting.
[Code]...
View 2 Replies
View Related
Oct 23, 2010
I was wondering if it is true that the Date object gets its date from the user's local time, if so, could the user "hack" the time by adjusting his local time?
View 6 Replies
View Related
Nov 10, 2010
I am trying to modify the ExpCollGroup function within Share Point (2003) and don't have access to server or ows.js file where the function lives. I want the ExpCollGroup function to run (I'm using it to expand/collapse documents in a document library), and then when finished, want to be able to run my own function like DoSomething(). The below code works but fires before the ExpCollGroup code executes. What can I do to make the ExpCollGroup function execute, and then perform my DoSomething function?
$('[id^="img_"]').click(function() {
alert(The Expand/Collapse button was pressed but the loading of documents has not yet begun');})
View 4 Replies
View Related
Jun 16, 2004
I am trying (although not succeeding) to load a page into a div. I have been tring to set the url property of the document i.e. 'div.document.url' but that does not seem to work.
View 4 Replies
View Related
Aug 19, 2010
[URL] In this link example, you will see the Facebook/Twitter share buttons on the upper, left-side. When you attempt to share this page to your Facebook friends, by default, it shows a random image on the page, when IT SHOULD be showing the post avatar of the bicycle wheel. How can we modify the script to capture this bicycle wheel avatar by default?
View 3 Replies
View Related
Jul 23, 2005
I'm a greenhorn in SVG and javascripting but I'm learning by doing.
So, here my current problem question :
I have a svg document embedded in another svg document. I whant,
through functions in an external javascript file, manipulate objects
in either the child svg document or the parent document.
How do I get access to elements of the other document ?
Example : I have a document "A" containing X/Y - Axis and included
another svg document "B" with the graphs.
I whant now, as soon as the mouse cursor is over a graph in document
"B" the belonging lable which is located in the parent svg document
"A" to change color or size.
Or I whant the graph in "B" to start blinking as soon as the mouse is
over the lable in "A".
I don't know how cross document borders.
Can anyone give me a short exapmle to get me going?
View 3 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
Dec 4, 2005
I'm having a problem trying to use a single DIV object for a popup menu
when I'm using embedded IFrames. All the IFrames have the same parent
document but I can't make the popup appear inside of each IFrame unless
I appendChild the popup DIV to each individual IFrame document body.
Should I be able to show the popup without having to reparent the popup
object? Are there any tricks to be aware of?
View 3 Replies
View Related
Jul 20, 2005
I need to know how to call a function in a different document. At the
moment I've tried onFocus but I'm kinda in over my depth. Perhaps if I tell
you what I want to do you can give me the process and I'll go figure out the
code?
My site is divided into two frames, top frame for navigation, bottom frame
for displaying content (called "top" and "main" respectively).
"top" contains 6 images within 6 seperate anchors, that I use as buttons to
switch between sections, the sections being displayed in "main". When the
mouse is over an image, it changes because I use "OnMouseOver", similarly
for "OnMouseOut".
Here is where I get stuck. I want a different image to be displayed as the
relevant button in "top" depending on which main section is loaded into
"main".
I was hoping to solve this by using "onLoad=" in each of the main pages for
each section, that will call a function in "top.html" to cycle through the
list of images changing the relevant image depending on the content of
"main".
I can see an inherent problem here, I have to make every page (could be
hundreds! - nightmare) call this function.
View 3 Replies
View Related
Jul 20, 2005
I was wondering if you could cast some light on a confusing subject. is
there a way which you know of that can search through html documents and
extract selected information, and display that in another (main) html
document?
View 1 Replies
View Related
Jul 23, 2005
Is it possible that the z-index property for an iframe doesn't work
when the SRC attribute is linked to a non html document? (i.e. a pdf
document)
That is what I am experiencing. I have a dropdown menu and an iframe
and I want the menu always to be displayed above any object in the
page. When the iframe is empty or it has an html page within, I can
achieve this by setting the z-index property in the menu(div) higher
than the one in the iframe, but when I try to display a pdf document
in the iframe (what I really want to do), the menu is displayed below
the iframe.
View 2 Replies
View Related
Jul 23, 2005
I was wondering if it is possible to include a xml structure in your html
document. For example given the below snippet the function "dothis()" will return 0
and "dothat()" will return 1. If I can use xml in html I should be returning 1 for both functions. Code:
View 3 Replies
View Related
Aug 6, 2010
I am retrieving an XML document like the following:
<SampleData>
<contentContainer>
<div>HTML goes here</div><div>HTML goes here</div>
</contentContainer>
<moreRecords>1</moreRecords>
</SampleData>
I was using a statement like this to take the content out of the "contentContainer" element and place it into another element:
$('#myDiv').html($(newXML).find("contentContainer").html());
This works great in Firefox, but doesn't in IE. I can use the following in IE using the text method, but that doesn't do what I want:
$('#myDiv').html($(newXML).find("contentContainer").text());
It appears that the html method isn't available with XML. Is there an alternate method I can use to grab a whole chunk of HTML within a portion of my XML document?
View 1 Replies
View Related
Apr 13, 2010
I have the basic parsing down no problem - I can read in an XML document and use foreach and find combinations to get to the basic elements I want to get to. The problem I'm running into is that I need to do more sophisticated parsing with multiple foreach statements:
<html><head><script>
$(document).ready(function() {
$('#example').click(function() {
$.get('[URL]', function(data) {
$('#output').empty();
$(data).find('Receipt').each(function() {
var $rec = $(this); .....
I want to loop through all the Receipt elements, find the SaleItem elements, and then display each part of the SaleItem parts.
View 2 Replies
View Related
Jul 1, 2010
I have a link that opens .doc files, .docx files, csv files or .xls or .xlsx files. i want silent printing of these files. Only one file opens at a time.
If silent printing is not possible then atleast print dialog box should open up along with the file. i am trying to implement this using javascript.[code]...
View 1 Replies
View Related
Aug 11, 2009
Is it possible to open anykind of documnets in a browser?
View 7 Replies
View Related