Reloading Only Source File In A Gadget?

Mar 17, 2010

I am not all that great at coding, but would like to put together a windows sidebar gadget that keeps track and logs specific activities. Some daily, some weekly, some monthly, ect.

I need to find a way to refresh a small imported java script every time a button is pressed without refreshing the entire form. Would also like to have it refresh automatically every hour if possible.

The line of code to reload is [URL]...Here is the entire code:

[Code]...

View 12 Replies


ADVERTISEMENT

Reloading Included File

Mar 3, 2007

does anyone can send me an example how to reload a div? I have an asp included file inside a div and i'd like to refresh it..

View 5 Replies View Related

Get Links To Change The External File Currently On The Main Page Without Reloading?

Nov 26, 2004

I am in a bit of a rut in the self-teaching with JS. I am trying to get links to change the external js file currently on the main page without reloading, the external files are basically long document.write sections with a few interactive functions.

The closest I have found for help with this so far is a rotating script, but I want a manual change from a link (button, image, etc) instead of timeOut rotation. I am not sure what I need to do for the links to replace the timeout function to change the dynamic section.

View 4 Replies View Related

Reading/Writing Data From A Win7 Gadget XML?

Feb 16, 2011

I am trying to teach myself a little bit about Windows 7 gadgets, which as you probably know are built upon Javascript and HTML. My gadget it extremely simple. It only really has two functions:

–Read/Write a user-inputted date.–Calculate the difference between today's date and the user-given date.The date is outputted from an HTML form in this format:

dateYear = YYYY
dateMonth = MM
dateDay = DD

How would I go about saving and retrieving this data into a javascript array?

View 5 Replies View Related

Large Script Source File

Jul 23, 2005

We have a fairly large (1500 line) .js file that contains script that most of our pages use. My personal opinion is that this is not easy to maintain, but others are concerned that with the script placed in separate smaller files the web server will have to process several other requests for script files, which will impact the performance of the server. Is that concern well placed? If so, is there some other way to break up a large script source file to make it easier to
maintain?

View 1 Replies View Related

Get XML File From Source And Send To Destination?

Apr 20, 2005

It should do sth in the line of taking the xml file from the source and sending it to the destination.

PHP Code:
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
<SCRIPT ID="clientEventHandlersJS" LANGUAGE="javascript">
<!-- function SendRS_onclick() {
[Code] .....

View 3 Replies View Related

View-source Of .js File From The Browser?

Apr 13, 2002

This is probably a REALLY stupid question for many of you - but I just don't know, and I can't find it in my book(s), but then again, I'm not sure what to look for.

I was visiting a real-estate site, and when I tried to view the source, the entire file was blank. Code:

View 24 Replies View Related

<script> With Source As A Local File?

May 11, 2009

Just a sanity check.Can the src URL for the <script> tag be a local file ala:<script src="file:///c:/myScript.js">I'm making an IE BHO to insert a script into webpages.I've got it working for scripts with regular remote URL's (http://etc)

View 7 Replies View Related

Display JavaScript Source File In Explorer?

Oct 15, 2004

I wrote some JavaScript I misguidedly thought cool, and felt like sharing it with the world. So I put a link to the source file in my blog. If I click on the link in Mozilla, it shows the source as text, as intended. If I click on it in Internet Explorer, I get a choice between saving the file or opening it, where 'opening it' means 'trying to run it and getting an error.' Putting Code:

type="text/plain" in the a tag doesn't help. Does anything?

View 4 Replies View Related

Restrict End User Access File From View Source?

Jul 31, 2009

Basically am working on the travel booking site,i written the lot of ajax scripts , so am little bit fear of that ajax ,becoz if some one tried to access anonymously So i dont want to user access or takeing my javascript fileTell me how to restrict the use get my javascript filecouple of days back i saw on site, in the i take that site js url , and when i typed on the Browser , the system say , you cant view this URL

View 2 Replies View Related

Pulling Source Code Out Of IFrame & Saving As .txt File?

Mar 22, 2010

I am currently trying to script a way for the source code from a Rich Text Editor to be copied and saved as a .txt file in the same folder, when you hit the 'submit' button (see demo on link below).

The Text editor being used is [URL]

View 4 Replies View Related

JQuery :: Saving Current HTML Code Source To File?

Oct 26, 2009

I'm new to js/jquery and this forum so please forgive my potentially off-scope js/jquery remarks. I've been running a lot of toggles to show, hide, etc... divs and other HTML elements. It's making my application incredibly nice navigation wise.

Now to put myself in my users shoes. Say one user toggles on and off the things they want and don't want until they are satisfied with all the content of the screen. (That is by the way the nature of my application. A user loads in various variables via PHP and other means and when satisfied, a PDF is generated for them containing all their preferred content.)

Because: When a user is at a point where all the content they are viewing is worthy of a PDF, it is also worth saving that HTML 'view' (classes switched, variable adjusted, etc...). I would call it 'Save this workspace' or something along those lines.

I don't have a direct question per se but am more interested in the views of others who have similar thoughts and moreover, what relationship has jQuery had in helping employing some method?

View 4 Replies View Related

Inserting A Dynamic JS File Into A Script Source - Chrome Error?

Apr 10, 2011

i'm trying to insert a dynamic js file which contains multiple functions in it (for the example : function x, function y)and it seems that my google chrome doesn't really like it so muchis there anyway you know i can bypass it and make it work and both web browserscode examples:

// this is where the js file supposed to go
<script id="ScriptFile">
</script>

[code]....

View 4 Replies View Related

Inserting Dynamic JS File Into Script Source - Chrome Error

Apr 10, 2011

I'm trying to insert a dynamic js file which contains multiple functions in it (for the example : function x, function y) and it seems that my google chrome doesn't really like it so much. Is there anyway you know I can bypass it and make it work and both web browsers.

Code examples:
// this is where the js file supposed to go
<script id="ScriptFile">
</script>
//1.js contains function x and function y
document.getElementById('ScriptFile').src = "/Mysite/js/1.js"

Later on I need to preform some actions with function x & y. Couple more issues I need to explain first there are number of js files (1,2,3 .... n ). Which all contain the same functions but with same data so i cant register them hard-coded. If I type the function x into the "ScriptFile" block, it does work.. its not the function problem. Same goes if i include it as source in the "ScriptFile" block (<script id="ScriptFile" src="/Mysite/js/1.js") this only gives me an error while using chrome, works perfectly fine under explorer the error says it cant find function x.

View 5 Replies View Related

JQuery :: Can't See Source (with View Source) When Loads External Html Into A Div?

Feb 23, 2011

I got some code that loads divs from other web pages into a particular div in my main page. In other words, I click on a button, and this tells jquery to load afragment of a particular page into my main page. For instance if I have 5 web pages onrock stars, I could have 5 buttons, and each button could load one rockstar's biography into a div on the main page (and replace whatever was there before). This works, and I do see the content that it loaded. But when I do 'view source' in IE, I do not see that content (the bio of the rock star). Another clue that this content is not really there, is when I try and run some code on that content. The content (from those external pages) have divs with specific names, and I try and make them into collapsible panels by running the following short function:

var IdentifyPanels = function() {
$("DIV.ContainerPanel > DIV.collapsePanelHeader > DIV.ArrowExpand").toggle(
function() {

[code]....

View 2 Replies View Related

Save Xmlhttprequest - Small Gadget Which Downloads A Series Of Images From Web - Displays Images In A Loop

May 25, 2010

I am working on a small gadget which downloads a series of images from the web and displays the images in a loop. However i am having trouble saving the xmlhttprequest to a file to use later in an array. I have read that it should be easy to save the .png using Scripting.filesystemobject but have been unable to find any information on how to do it.

Here is my code so far:

Code:

View 1 Replies View Related

JQuery :: Multiple Source Without One Source Stop The Other

Aug 30, 2010

i don't know so much about jquery so just i use them with indication from their web site. so my problem is how can i use multiple source of jquery without one source stop the other,and that what i need:

[Code]....

View 2 Replies View Related

Embedded Source Showing In View Source?

Jul 11, 2009

recently i noticed that all of my embedded JavaScript code and external style sheets are being shown IN "view source."

this happens in all browsers ( IE, FF, Chrome, and Safari [windows]) ... oddly enough it only happens when viewing on my vista or win2k3 machines. is this something added to these OS's or the result of an installed program? has anyone seen this before?

View 9 Replies View Related

Replace Image Source With Other Source

Nov 23, 2009

I have a website that I frequently visit (FWIW, Firefox 3.x is my browser of choice) with many image sources referring to URLs that end with "-thumbnail.jpg". However, for better image quality, I am trying to use Greasemonkey to replace all instances of "-thumbnail.jpg" in the source of images on this site with "-bigthumbnail.jpg". The closest I could think of was to somehow use getElementsByTagName and innerHTML.replace, but realized that innerHTML does not do HTML, only content.

Below is as far as I tried to get on my own,

var as,ae;
as = document.getElementsByTagName("img");
for (var i = 0; i < as.length; i++) {
ae = as[i];
ae.innerHTML = ae.innerHTML.replace(/-thumbnail/gi, "-bigthumbnail");
}
})();

View 2 Replies View Related

Php - Keep A Div From Reloading?

Jul 2, 2010

Basically, I want the same effect as the oldschool html 'frameset' I think.[URL]If a user selects a project from industry -> transportation for example, I would like that the right scrollmenu keeps its initial state when the new project page comes up. So they won't get lost and have to click again to be in the same submenu section.So, the right thumbnail navigation should stay in the same way, I don't want it to reload.Do I have to do it with frames or iframes? Or can I make some kind of jQuery call to 'not reload' that div? Maybe PHP? I'm sorry, I am not a programmer from origin.

Update:I managed to put the whole thumbnail navigation code into a seperate php file, called sidebar.php. Now this gets called in my single.php (Wordpress) by <?php get_sidebar(); ?>.Should it now be easier to make this sidebar.php NOT refresh on page reload? I've been looking at cookies, php sessions, iframes.. but I can't get it to work.

View 6 Replies View Related

Change Div CSS Without Reloading Swf?

Nov 8, 2011

I have a flash embedded into HTML and at some action in the flash, a javascript is called that changes the CSS properties of the div containing the flash (postion, from relative to fixed)the problem is, when this CSS is called the flash banner reloads from the beginning.. I read about it, and it's kind of a bug in firefox.the question is, is there a way to change the CSS without reloading the flash?

View 3 Replies View Related

JQuery :: Got Any Error "Error: $("#form-dialog-join").dialog Is Not A Function Source File: Http://localhost/vs/js/join.js Line: 9"?

Oct 29, 2011

I don't understand ..

$("#form-dialog-join").dialog() is a valid function which I copied from Jquery demo. What's wrong with it?

btw, all the jquery library is loaded correctly.

View 4 Replies View Related

Reloading Original Frameset

Jul 23, 2005

I have a site with frames. Like most sites with frames, clicking
links in one frame changes the page in the other frame.

Obviously, if someone puts in the URL for my site, they will get the
"homepage" when they first get there. What I would like to accomplish
is that if they leave my site, and then use the BACK button to come
back, that the site will open with the homepage, not whatever page
they were at when they left. Is that possible using javascript? If
so, how?

My site isn't actually "on the web" yet, so I can't give you a URL.

View 2 Replies View Related

Changing The URL Without Reloading The Page

Sep 20, 2005

I have a page that has several layers that I will either show/hide
based on a graphic/tab that the user clicks. (works perfectly)

On several of the layers there are forms that the user can update
information on. Well, after the user updates the information, I need
to 1.) refresh the data on the page(means a reload of the page), and
2.) take the user right back to were they started.

My problem is that when I refresh, the page goes back to the 1st layer
that is set as default to show.

So, here is what I did. I have two functions.

Function 1 is called when the user clicks on one of the tabs (Assets)
in this case. This will 1.) show the Assets tab and 2.) hide all the
rest of the tabs.

Well if I update that form for Assets, I need to 1.) refresh the data
and 2.) bring the user right back to Assets.

What I did for this (please tell me if there is a better way) was to
set a hidden field with the lastlocation of where the user clicked. In
this case the field value is now set to Assets.

So far everything is working great...

Well, if I submit the form because I've updating information, I need to
return back to the assets layer. To do this I set the location.url and
put a var in the url that I evaluate when I OnLoad the page. If the
value = Assets then I am able to show/hide the layers to get to the
Assets.

Again, this works great after much banging of my head against the
wall... Here come the problem.

Because I set the location.URL (I've also tried location.href) the
browser will automatically refresh. I do not want this. I want to set
the url and only refresh when I want to.

For example when I submit a form that updates data.

View 6 Replies View Related

Reloading A Page Programatically

Jul 20, 2005

Is there a way of reloading a page programatically - for example,

<script language="javascript>
document.location.reload()
</script>

BUT NOT HAVING TO MANUALLY CLICK A "RESET" BUTTOM.

View 1 Replies View Related

Reloading A Frame On A Timer

Jul 20, 2005

Suppose I have two frames, as shown in the script below. One of the frames,
I would like to have reload every ten minutes or so. Hower, the frame I wish
to reload is a php script, which executes and creates a png image which gets
displayed directly to the browser frame (therefore, the image is NOT written
to the server itself, and the page that gets displayed in the frame I wish
to update is a png image mime type).

How can I amend my script in my page which holds the frameset (i.e. the
parent) such that only one particular frame is updated at a fixed interval?

<frameset rows="10%,90%>
<frame src="ggtab1a.php" name="main" scrolling="no" noresize
FRAMEBORDER=0 BORDER=0 FRAMESPACING=0 marginwidth="1"
marginheight="1">

<?php
echo "<frame src="reports/homepages/" . $username.".php" ";
?>

name="work1" FRAMEBORDER=0 BORDER=0 FRAMESPACING=0 marginwidth="0"

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved