javascript

Open webpage and parse it using JavaScript

Hello ll, I know JavaScript can open a link in a new window but is it possible to open a webpage without opening it in a window or displaying it to the user? What I want to do is parse that webpage for some text and use it as variables. Is this possible without any help from server side languages? If so, please send me in a direction ...

How to discover a LocalConnection connection name?

I'm developing a Adobe Air application that should make use of a SWF file using LocalConnection. I've never used LocalConnection before, but from what I understood from the online reference, I need to specify the same connection name on both the sender and the receiver. Since I don't have access to this component source code, how can I...

Page reloading and malformed HTML problems in a XULRunner based app.

Hello, I am writing an application on XULRunner that displays HTML pages from the web: I have a very simple XUL file with a in which is just a filling the window and loading a local HTML file. In my HTML, I have an iframe to load content. What's cool with XULRunner is that I can access the content of the iframe for many things (displ...

RegisterClientScriptBlock vs RegisterClientScriptInclude

Using RegisterClientScriptBlock I reduce server requests. But with RegisterClientScriptInclude I can separate HTML and javascript. Which method should I prefer? EDIT: Additional question - where do you store your js blocks. I get used to place them into resources files. ...

Help with a AJAX PHP and MYSQL Live Search!

Hi, i am trying to create a Ajax live search for my website. I currently can query the database for titles and display them under my search (See Fig 1.0) however i need to make them selectable so that when you do select them, it will set the input value to that title, very much like on wikipdia search Wikipedia Search. The wikipedia exam...

At which point in the life of an xmlHttpRequest object is serialised XML parsed into a DOM?

In JavaScript, xmlHttpRequest.responseXML() returns a DOM Document object. The DOM Document object is created from an XML-structured HTTP response body. At what point during the life of an xmlHttpRequest object is the XML string parsed into the DOM Document? I can imagine it may occur in one of two places. When responseXML() is calle...

ASP.NET Javascript Timer

Hi, I have a countdown timer in javascript that is called by a code behind using asp.net VB. I cannot find a way to keep track of the time ,. the problem is., I cannot get the time that elapsed after postback so that the timer would continue ticking,. can you help me please,.?? I would really appreciate it., here is my code fragment: ...

javascript/jQuery: event fired twice

I'm trying some event bindings with jQuery and I have this simple code in my document ready: $(document).ready(function() { $("p a").each(function(i, selected){ $(selected).hover( function(event) { alert('over: ' + event.type); }, function(event) { alert('out: ' + event.type); }); } ) }); So, when I move mou...

passing arbitrary html to a popup window

I am calling my makewindows fuction from a php file like so: echo "<a href='#' onclick=\"makewindows(" . $html . "); return false;\">Click for full description </a></p>"; This generates correct html, which results in a popupwindow containing the html from $html. For example(most of the html has been snipped): <a href="#" onclick="mak...

Jquery Best Case Scenario

I am loading a bunch of images for a GUI which will pick attributes for my clients product. Is it best to pre-load all the images at the start (which I'm guessing would take some time) and then have the GUI have full functionality or is it better to load images on the fly. Essentially i am working on a picture/poster framing applicatio...

launch an app to record keep with greasemonkey

I have my greasemonkey script scanning every page i visit for a specific string. I would like to recordkeep the variations of the string in a sqlite db. I'll have another app process this db everyonce in a while. What i dont know is HOW do i store the data into the sqlite db? i was thinking i can launch an executable automatically if the...

I would like some help with an autoroller im coding in javascript

I have a game that requires you to click on an object to collect prizes, but instead of giving my user carpel tunnel I want to create an autoroller. I have some code done already but I cant get it to work. If there is anyone out there that would be able to help me get this code working, it would be greatly appreciated. Thanks ...

TypeError: Value undefined (result of expression xmlDoc.load) is not object.

I am trying to load an XML file using Javascript and I have yet to find a good function that works in IE, Firefox, and Safari. The load function I am currently using is basically the one straight out of the w3schools tutorials: http://www.w3schools.com/XML/tryit.asp?filename=tryxml_dom_createelement The exact code looks like: if (win...

How can I access local scope dynamically in javascript?

If you want to use global functions and variable dynamically you can use: window[functionName](window[varName]); Is it possible to do the same thing for variables in the local scope? This code works correctly but currently uses eval and I'm trying to think of how else to do it. var test = function(){ //this = window var a, b...

What is the easiest way to detect if at least one field has been changed on an HTML form?

I have an HTML form with over 20 fields. I also have a couple of links on the page which will lead the user away from the form... potentially without having saved any changes. I want to warn (JS confirm) the user onClick of these links if any of the form fields have changed, but I don't want to create a huge switch statement that I the...

Why does attaching an eventhandler in Javascript stop my server side event firing?

I've been doing C# for years but ASP.NET for not so long and this has me stumped. In my troubleshooting example I have a dropdownlist in an ASP.NET page, it has four items in it, I have a serverside event that fires on selectedindexchanged, it all works great in this scenario. However, if (as i have in my evolved code) I set a Javascr...

Having trouble getting TinyMCE to have an auto-sized width.

I'm trying to incorporate TinyMCE into my CMS and I'm having the hardest time getting the width to resize to the size of my container. I'm using the advanced toolbar theme and the buttons do not drop below to form another row if the width is made smaller. I've searched a lot of forums and the TinyMCE docs and I can't find a solution that...

AJAX Function to populate a field in a form?

Hey, I was looking through W3's tutorial on AJAX and I decided to make a javascript function that would populate a form field based on the response of a page. I took all their functions and tried to create the below one. Can anyone see why it wont work? function populateForm(myForm,formField,PageFrom,infoToSend) { var xmlHttp; try { ...

Cross-Browser Window Resize Event - JavaScript / jQuery

What is the correct (modern) method for tapping into the window resize event that works in Firefox, WebKit, and IE? and can you turn both scrollbars on/off? ...

print another page from the current page passing a value

hi i need to validate the next page before printing it ... what i did is i used i frame in the first page and called the page i needed to print but it fired the query in the first page which should have been fire in the second page after the submission or click of the button ... so i need to fire the php function after the button click...