I was doing some web scraping and i was looking for some div elements with particular class names and markup.
This is my objective , i have to extract everything within the div having the class s_specs_box s_box_4
Could someone please provide the regular expression in .NET terms (i.e., which can be straight away passed into Regex's con...
I have the following code for javascript:
function append_place(street, city, state, country) {
var address = street + ', ' + city + ', ' + state + ', ' + country;
$(".shop_location").append(address);
street, city, state, country are external variables drawn from database. (I'm working on Ruby on Rails project by the way.)...
I code the game over at ninjawars.net, and have recently consolidated most of my (ugly) javascript code into a single object that gets re-used for the inner frame and the outer frame.
We were going to consolidate the same instance of jQuery as well (i.e. making it a Global so that it is accessible via $ everywhere, but is only 1 jQuery ...
I have a UIWebView that contains a lot of text content. I need to be able to get the location of the UIWebView every time it moves. I am using this code to get the point:
pageYOffset = [[webView stringByEvaluatingJavaScriptFromString:@"window.pageYOffset"] intValue];
now I just need to make it so that this variables value is updated e...
I want to take a day of the year and convert to an actual date using the Date object. How can I go about doing this?
...
Hey everyone, I'm working on an application and I'm having difficulty with the new Rails 3 link_to. Here's the situation - I have two divs on my "home" page, and each div is populated at document.load with ajax. This works as expected.
In the content of the pages I'm loading into these divs, I want to use the link_to... :remote => true ...
Hi Stack Overflow!
I'm currently attempting to develop an HTML5/JavaScript application which is similar to:
http://mugtug.com/sketchpad/
The source is right there, but I think I'd run into some copyright issues by cutting/pasting (I suppose I could contact them), but I'd rather use some free APIs that would have similar functionality.
...
I have a <div>, which is dynamically controlled by the JS, for example, some children are added dynamically. Is it possible to know the width & height of the rendered DIV after the insertion/deletion are done?
...
Hi
i am trying to create an application for in PHP such that after the submission, the system should retrieve all the applications which he had done earlier and ask him whether to continue or not.
the logic is in such a way that i hav a div (id : confirmation) whose display is none. when the execution is on progress, we fetch all the d...
Is it possible for javascript or html to create a drop zone for images to be dragged into by a user? I suppose it is an image placeholder that will accept images dragged into it while the page is live?
Any help will be Awesome..!
...
Is there a technique for adding a text footer the bottom of each page when it is printed? For example "Copyright My Company 2010" - I know there is probably a way to do this with a background image using CSS, but I would really like to use text for this portion so the client can edit it. Any ideas?
...
I have been searching high and low for a solution to this problem. I fetch dynamic positions of markers and show the map positioned and zoomed baased on the City that has been selected in my application. If I then scroll or zooom the Google map and then request an update of the markers position (by fetching the xml) I loose the new posit...
Hello,
I am attempting to write a JS function (using prototype in rails) that will show hidden divs within a li when that li is mouseover'ed. Each li has a unique id that is a number, like so:
<li id="100">
<div style="display:none;" id="hover-display-content">Content</div>
<div style="display:none;" id="more-hover-display-content"...
Hello friends,
I m very impressed with the idea of stackoverflow, the way they provide the options to login to the users is very easy for any user. And if I have to do the same thing in my website then how its going to be. what will be the coding structure and coding snippets for the same in php , mysql and javascript (ajax).
http:...
Possible Duplicate:
Protecting client side logic & data
Hi ,
How to block other reading my java script through view source,
My thing is, now one can access my java script,
bcoz am not sure, but just guess some one from outside using some tool to changing my
javascript events,
So how to make the autenticated ,
...
var p = this.getParams();
var pD = (o.params||{});
if (this.useJsonData) pD = (pD.jsonData||{});
this.cursor = (pD && pD[p.start]) ? pD[p.start] : 0;
And what is the difference between these two lines.
this.cursor = pD[p.start] || this.cursor || 0;
Is the first code fine or there is any fault in it.
...
Background: I've been using LABjs to load JS files asynchronously and in parallel, and I want to build something that takes it a step further. Part of this will involve detecting when a JS file is loaded in cache or not. So my question is:
How can I determine whether a JS file is in cache or not and in addition do so in a way that would...
I came across a jQuery Wizard plugin at the following URI:
http://www.techlaboratory.net/labs/SmartWizard/wizard-vertical.htm
While it serves my purpose, I am trying to achieve one small thing. If I add more than 5 steps, obviously not all steps are visible. Instead, when clicking on the next, I am trying to center the step that is sel...
I am doing something like this: if an image is cached on user's computer and its timestamp is the same as the one on the server, then display the cached version; otherwise, do NOT load the image from the server.
I guess maybe JavaScript can do this, so I tagged this post as javascript. If it is improper, please help me to re-tag it.
Ed...
I ask this question as I have a lot of free time coming up and want to further myself in web design and web programming. I want to know how I can MOST EFFECTIVELY achieve a high level of skill and expertise for designing, maintaining and creating websites.
I believe in learning by doing, and that's how I have been progressing so far. I...