Hi,
I use curl, in php and httplib2 in python to fetch URL.
However, there are some pages that use JavaScript (AJAX) to reterive the data after you have
loaded the page and they just overwrite a specific section of the page afterward.
So, is there any command line utility that can handle JavaScript?
To know what I mean go to: monste...
I'm trying to use jQuery to parse the DHS Threat Level that they have in their XML file, but I can't seem to get it to work. I'm very new with Javascript and non-presentational jQuery, so I'm probably missing something obvious.
This is the XML file:
<?xml version="1.0" encoding="UTF-8" ?>
<THREAT_ADVISORY CONDITION="ELEVATED" />
Thi...
I am trying to emulate a simple timepick user control with a combo box and a little image of a clock. In the user control I type in the code:
function SetFocus() {
var comboBox = $find("<%=cboTime.ClientID %>");
var input = comboBox.get_inputDomElement();
input.focus(); }
cboTime is the combobox control and there is ...
I have a page that allows the user to download a dynamically-generated file. It takes a long time to generate, so I'd like to show a "waiting" indicator. The problem is, I can't figure out how to detect when the browser has received the file, so I can hide the indicator.
I'm making the request in a hidden form, which POSTs to the server...
Hi there guys.
I've been searching the net hard for some javascript code that allows me to automatically scroll images non-stop horizontally on a webpage. After a long time searching, I finally came across something that was close enough. I then customised it as much as possible to make it do exactly what I wanted it to do.
This testi...
One of the first things I like to do when I make a site is to put in links at the bottom of the page to check for valid HTML and CSS:
HTML5 •
CSS
<div>
<a href="http://validator.w3.org/check?uri=referer">HTML5</a>
<a href="http://jigsaw.w3.org/css-validator/check/referer/">CSS</a>
</div>
However, when you...
I am currently using javascript to implement a javascript scroller on my webpage. However, this is not compatible with any DOCTYPEs and instead displays a stationary picture. I was wondering if any one had any idea how I would implement this using jQuery, Mootools or any other such library.
The sites are detailed below with and without a...
Is this code possible?
switch (rule)
{
case 'email' || 'valid_email':
valid = this.validate_email(field);
break;
}
...
I'm using Safari for windows. It tells me that document.prototype.loadXML is undefined.
What are my other options to create XML document?
...
I am getting this error when i run this function
<script language="javascript" type="text/javascript">
//function for check digit
function check_no(e)
{
if (!((e.keyCode >= 48) && (e.keyCode <= 53)))
{
alert("Solo valores entre 0 y 5 pueden ser ingresados");
...
Hi,
I'm curious, how would you test a string and say "yep, that is a comma delimited list!" I'm not so worried about the 'comma delimited' part more that this string has more than one item in it?
Thanks, R.
...
There was a fade out sample in the internet..
http://docs.dojocampus.org/dojo/fadeOut?t=tundra
but i want to do something different..
i want people directly click on the text then the text will fade out.
in my code there is a div wrap the text
<div id='parentNode'>
<div id='textDiv' onClick='whenClickAnyWhereWithinThisDiv_performF...
I have a table column I am trying to expand and hide. jQuery seems to hide the column when I select it by class but not by element name.
Why does
$(".bold").hide(); <--This work
$("tcol1").hide(); <--This NOT work??
The second column has the same name and id for all rows:.
<tr>
<td>data1</td>
<td name="tcol1" id="tco...
Hi, I have searched on here for a quality method to compare associative arrays in javascript. The only decent solution I have found is the PHP.JS project which has some comparative array functions. The only problem is that these functions consider the first array as the key to the second. In my situation at least both arrays do not alway...
We are plannnig to upgrade the UI framework for our 6-8 year old application written using Struts/JSP/EJB to ExtJS. Just curious as to what is the most popular Java technology on the server people have been using. We were looking into several alternatives like
DWR
RestEasy
Restlet
Struts-Json
We are diving more towards using DWR but ...
I want to write a function to make user click the table header double click and change into descending or ascending order, and I have finished the sorting function, but don't know how to put together, now I just put one of them into the header as following:
function sortBy(sKey)
{
document.sortResultsForm.sSortBy.value=sKey;
docum...
I am working on a simple PropertyGrid. If I set the source property with some json object at design time, it is displaying properly. But when I tried setting the source data dynamically, it is not displaying data.
This is my code:
ConceptPropertiesPanel = function() {
this.source = { ***// if i set source this way, it will work*...
Cryptic title, but it's hard to explain. With Firefox, head over to http://images.google.com do a random search, and then drag the first search result to the URL bar. You'll see it it goes to the page that had the image anchor. Then click the "see full size image" link, and then drag the image to the address bar.
In the first example...
The question is closely related to my past question here, but it is not the same.
Problem: to add a Play/Pause button in Chromeless Youtube here.
Attack: I added the below code like here (search "SERVERFAULT" in the code) or like below:
var playingtimes = 0;
function playPauseVideo(playingtimes) {
if (playingtimes % 2 == ...
A player: http://www.yvoschaap.com/videowall/
How can you customise the above Chromeless Youtube to have Play/Stop/Pause buttons?
Info on YouTube chromeless player provided by Google:
http://code.google.com/apis/youtube/chromeless_player_reference.html
http://code.google.com/apis/ajax/playground/?exp=youtube#chromeless_player
...