Hello All,
The problem I am facing with below code is that whenever I try to select any option from the select box, the mouseout event executed (in IE, Mozilla doing gr8) and option disappear. How can one get over this bug.
<select name="ed" id="ed" dir="ltr" style="width:200px;overflow:hidden;" onMouseOver="this.style.width='auto'" o...
if anyone fancies doing me a really quick favour, it would be really appreciated:
static function make_url_safe($z){
$z = strtolower($z);
$z = preg_replace('/[^a-zA-Z0-9\s] /i', '', $z);
$z = str_ireplace(' ', '-', $z);
return $z;
}
what js functions should i be looking at to convert this function to javascript?
...
Hi. Does anyone know how to pull out the url of the image in wordpress so it can be used as a refrence in the script? I need to pull them dynamically. However when I'm using postimage(); it pulls out this:
<a href="address">
<img width="300" height="300" src="image.png" class="image" alt="" title="LINKING"/>
</a>
I'm only interested i...
Hi,
To begin with, I have a database that holds map data for a game I am creating. A script on my page uses JSON to retrieve a certain amount of that data from the database and store it in an array.
When the data is retrieved it goes through a function that finds out how many individual tiles are used in that particular area. Here is t...
This is driving me nuts!
I'm getting some JSON from my server:
{"id262":{"done":null,"status":null,"verfall":null,"id":262,"bid":20044,"art":"owner","uid":"demo02","aktion":null,"termin_datum":null,"docid":null,"gruppenid":null,"news":"newsstring","datum":"11.06.2010","header":"headerstring","for_uid":"demo01"},
"id263":{"done":null...
Hello guys!
How can I get the href of an anchor when I click on it using javascript?
I did the following:
function myFunc() {
}
window.onclick = myFunc;
But how to extend the function to respond only to clicks on anchors and get the href?
...
Hi All,
I am going through a weird problem while using lightbox .
Where ever the new light box is used user is able to open the same light
box on same page number of time. For e.g
Using tab button go to `Lightbox link`.
Press enter --> Light box will open.
Press enter --> second light box open below the previous one.
and so on.......
...
Hi, we want to test our webpages on linux shell. For that reason I'm looking for a shell tool, which gets the html page from server (like 'wget') and then executes contained Javascript, include pictures and so on. After this, the tool should give me a 'screenshot' of the rendered page, so that I can create a checksum for that screen. (So...
Hello,
I have this JSON object:
{"time":"123456789", "raw":"chat_history", "data":{
"msg":[
{"time":1111111111, "user":"user1", "text":"text from user1"},
{"time":2222222222, "user":"user2", "text":"text from user2"},
{"time":3333333333, "user":"user3", "text":"text from user3"},
{"time":4444444444, "user":"user4", "text":"text fro...
Hello,
I have a YUI datatable and I have a function which is invoked when I click on a row:
...
YAHOO.keycoes.myDatatable = myDatatable;
...
myDatatable.subscribe("rowClickEvent", oneventclickrow);
var oneventclickrow = function( args ) {
...
}
I'd like to invoke the function subscribed to rowClickEvent on the row which is curren...
Hi, yesterday i noticed that sometimes on my webpage shows up javascript errors.
when i went to source code, i found that one of .js files was totaly replaced with a ton of porn links.
i checked the ftp for this file, but there was just old javascript file without any changes.
yet i go back to check source code via browser and indeed th...
Hi,
As per requirement I disabled all validation controls in page on PageLoad event in server side.
On clicking submit button I want to activate them and validate the page and if the page is ok submit other wise not.
I am able to enable all validaters but one thing that I am unable to understand is that they do not validate the page....
Hello guys,
I need to inline some javascript code into the Smarty template files and these {ldelim} {rdelim} things are killing me. Is there a way to tell smarty to ignore the markup for a block and just output it as is? Something similar to CDATA blocks in the xml?
Just in case: here is how simple javascript looks now:
$(function() ...
Hi,
I'm writing some JavaScript that changes the size of some content. To do this I need to know the size of a div within my content. If I have the following html:
<div id="wrapper">
... other stuff ...
<div id="inner" style="height:400px">Some text in here</div>
... other stuff ...
</div>
And the following JavaScript:
$(...
Imagine I want a user to be able to copy-paste a selection of pixels from MSPaint into a browser-based app. Is this possible using JavaScript in any current browsers? Will it become possible in HTML5?
If not, is it feasible using something like Flex/Silverlight, or is it simply not possible at this time, and you'd have to save a file and...
I'm having this issue on my website in IE (6,7,8):
‘nodeType’ is null or not an object
The error refers to "f.nodeType" property. Basically f is undefined, so the issue is before, but I cannot fix it.
(from IE developer toolbar debug it appears to be this line that is throwing the error)
(autocolumn.min.js line 13 expanded below f...
Hi
i have this method:
set_period_help_text: function(periodInput){
var metric = MonitorMetric.getSelectedMetric();
var periodStr = $('select[name=metric_period]').val();
var datapoints = Number(periodInput.attr("value"));
var period = datapoints * periodLookup[periodStr][0];
}
var periodLookup = {
...
Hi, I'm doing this:
$.ajax({
type: "POST", url: baseURL+"sys/formTipi_azioni",data:"az_tipo="+azione,
beforeSend: function(){$("#form").html('<p><img src="'+baseURL+'lib/img/ajax-loader.gif" width="16" height="16" alt="loading" /><p>');},
success: function(html){$("#form").html(html);}
});
there is a case when azione ...
Hi,
I've a project where one of the requirements is fullfil the "W3C Web Content Accessibility Guidelines 1.0 (WCAG 1.0)".
I'm now considering wich technology could I use to acomplish it, but I'm a little bit confused.
Silverlight would be the easiest way, but I cannot find conclusive information about if silverlight is or isn't compi...
How can I customize (override) an existing style sheet provided in jquery UI, like changing the colors and width and height of sliders?
...