Hi Every One,
I am developing an application on fireeagle, there i need to update the users exact location, with out asking any information from the user (i.e) lat, long e.t.c.,
If it is not possible using yahoo fireeagle, please let me know if there exists any other api's other than yahoo fireeagle. If they can get the exact location ...
Hi guys,
I have written this code that loops through an array of lat/long coordinates and places a marker at each of the coordinate. Everything forks fine, exempt the info window won't appear once the marker is clicked.
var ExpTowerIcon = new GIcon();
ExpTowerIcon.image = "tower.png";
ExpTowerIcon.iconSize = new GSize(75, 75);
...
I'm using jqGrid for a table input and setting up the url as a servlet which will deal with the GET and POST requests and save the rows to a Java object.
I'm using webwork web framework and I was wondering how I can get access to the object that the servlet is saving the data to.
One way I have thought of is to just call the GET metho...
Anyone help? When I run this I get " invalid quantifier ?<=href= "
var aHrefMatch = new RegExp("(?<=href\=")[^]+?(?=")");
var matchedLink = mystring.match(aHrefMatch);
But I know the regular expression is valid.
Any ideas?
...
there is a file as data.html.How to display the contents of this file using javascript or jquery
Thanks..
...
When i use the code below, im getting this error:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource
when returning the data, anyone can fix it? Thanks!
<?php
$mysql_server_name="localhost";
$mysql_username="";
$mysql_password="";
$mysql_database="";
$conn=mysql_connect($mysql_server_name, $mysql_...
Hello! I have got the following regular expression working just fine in Rad Software Regular Expression designer.
param\s+name\s*=\s*"movie"\s+value=\s*"(?<target>.*?)"
And now i am wondering, how to get this to work in javascript. It keeps on complaininge about the "target" part. I am trying to validate and get the url from the youtu...
here is the code:
Ext.onReady(function(){
alert("inside onReady");
Ext.QuickTips.init();
var employee = Ext.data.Record.create([
{name:'firstname'},
{name:'lastname'}]);
var myReader = new Ext.data.JsonReader({
root:"EmpInfo",
},employee);
var store = new Ext.data.JsonStore({
id:'ID'
...
Hi Folks,
imagine you have to do DOM manipulation like a lot (in my case, it's kind of a dynamic list).
Look at this example:
var $buffer = $('<ul/>', {
'class': '.custom-example',
'css': {
'position': 'absolute',
'top': '500px'
}
});
$.each(pages[pindex], function(i, v){
$buffer.append(v);
}...
For instance this code:
function stuff() {
this.onlyMethod = function () {
return something;
}
}
// some error is thrown
stuff().nonExistant();
Is there a way to do something like PHP's __call as a fallback from inside the object?
function stuff() {
this.onlyMethod = function () {
return something;
}
// "catcher" f...
Hello guys,
I wanted to write javascript code on "OnClientClick" of the asp.net button and also I want the asp.net validation to be run for that button. but when i mix these both validation is not working. please help me out. Below is my code
ASPX
<asp:Button ID="btnAddToFeatureOffers" runat="server" Text="Add to Feature Offers"
...
I have a form and then a JS function which processes it and does 3 actions. Here's my function:
function submit(){
document.optin.action = "link1.php"
document.optin.target = "_self";
document.optin.submit();
window.open('http://link2.html','','scrollbars=yes,height=600,width=900,resizable=yes');
document.optin.act...
My problem is -- I have a html file which is really JS program, which reads web pages and show them in customized manner (i.e. it displays the same content in a different way).
Basically, I create XMLHttpRequest object and then
req.open("GET", web_page_address, false);
req.send("");
This gives me (in firefox) an error:
Error...
Hi there, I posted a question yesterday, which I intend to get back to today however I wrote some JavaScript as a first line of prevention against XSS. However when testing this on my live server I catch some invalid input as the javascript catches the php section. My form uses post and php isn't in my form items (i haven't typed it in)....
I'd like to build a function that returns false if it's been called less that half a second ago.
timething.timechill=function(){
var last
if (last){
if ((now.getTime()-last)>500){
return true
}
else{
return true
}
}
else {
...
Hi.. I'm having a problem.. the site is working correctly in safari, chrome and firefox (mac and win) but in Internet explorer I get an error related with mootools: Line: 59 Character: 102.
The site URL is: http://xxx.com (I've removed the url for security reasons)
I've noticed that mootools is being loaded two times, maybe another co...
I wanna constrain to input special signs like £ ¬ ¦ in javascript,but they are always displayed in ��� on Page source. How can i let them display correctly and page can be validated ? my page is using utf-8
thanks
...
Hello all,
After a button is clicked to start a process on my web app, I show a small loading gif (animated) that rotates to indicate to the user something is happening. I put the gif img in place of the button like this using JQuery:
$('#btn_holder').html('<img src="images/loading2.gif" style="margin-left:40px; margin-top:7px;" />');
...
When using third-party libraries such as jquery, yui-reset, swfobject and so on, do you link to the hosted versions, or download and host your own versions?
Pros and cons either way?
...
I am currently rethinking the object dispose handling of the qooxdoo JavaScript framework.
Have a look at the following diagram (A is currently in scope):
Let's say we want to delete B. Generally, we cut all reference between all objects. This means we cut connection 1 to 5 in the example. Is this really necessary?
As far as I have re...