Hi friends,
document.getElementId(id).style.display ='table-cell'. this gives error message in ie, this is ie bug or any other solutions please give any other solutions
var ret = []
,xresult = document.evaluate(exp, rootEl, null,
XPathResult.UNORDERED_NODE_ITERATOR_TYPE, null)
,result = xresult.iterateNext();
while (result) {
ret[ret.length]= result;
result = xresult.iterateNext();
}
can anyone explain me what is the ret = [],..,... syntax? Initializing array?
I have setup a cron job to run a php file every 30 minutes,
lynx -source public_html/scripts/file.php
the result comes through to an email but seems to get this error
Can't Access
`file://localhost/home/username/public_html/scripts/file.php'
Alert!: Unable to access document.
lynx: Can't access startfile
any advice would be much appreciated
i have to load a div with a list of check boxes using ajax. I have writen ajax code to fetch the string containing the list of check boxes.`
document.getElementById("roleCheckBoxes").innerHTML="";
$('#roleCheckBoxes').append(xmlhttp.responseText.toString());
the data are fetching properly but the display alone not reflecting the string which i gave instead it displays a the list of check boxes with all checked... can you help me in it..
Hello guys!
How can I get the href of an anchor when I click on it using javascript?
I did the following:
document.onClick = myFunc();
function myFunc() {
}
But how to extend the function to respond only to clicks on anchors and get the href?
Hi I have the following script in my form
function pdf() {
var frm = document.getElementById("form1");
frm.action = "http://www.abbysoft.co.uk/index.php";
frm.target="_blank"
frm.submit()
}
this is called from the following in my form
<input class="buttn" type="button" value="Test" onclick="pdf()"
The code work up to the frm.submit() but it will not submit
Can anyone offer any advice please ?
I cannot get scroll to work, here is the complete stuff:
http://zed.mit.edu/scroll2/buc.php
I'm trying to refresh the page while maintaining the scroll position of the iframe inside.
I'd like to have an alert when I actively scroll the iframe, these two both fail:
$(top).frames['#iframe_bucinid'].scroll(function() ....
$('#iframe_bucinid').scroll(function() ...
The page's iframe is defined as:
<iframe class="inframe" src="bucin.php" name="bucin" id="iframe_bucinid">
Notice that getting the scrollTop works with
top.frames['bucin'].document.body.scrollTop
How do I use jQuery to determine the size of the browser viewport, and to redetect this if the page is resized? I need to make an IFRAME size into this space (coming in a little on each margin).
For those who don't know, the browser viewport is not the size of the document/page. It is the visible size of your window before the scroll.
Hi guys,
I want to parse an html document after it has loaded and discover all the links that the onmousedown event is set for them - how do I do that?
Thanks
Alex
This is probably just a setting I'm not seeing, but when I get a stack trace out of Visual Studio's exception helper dialog, it has \r\n after each "line" in the call stack. When I copy this and paste it into Notepad++, it shows up as literally \r\n, visible in the document. Of course I'd like these to be interpreted as CR LF, so everything's on a different line.
Anyone know how to do this?
I need to strip out all font tags from a document. When attempting to do so with the following Ruby code, other elements and text within the font tags are lost. I've also attempted to iterate through all children elements and make them siblings of the font tag before unlinking the font tag--which also results in lost HTML. What is a good method for removing tags which can contain other elements and/or text?
doc.css('font').each do |element|
element.unlink
end
How do I do the following pseudo code in JQuery?
$(document).ready(function(){
$(".btn-slide").click(function(){
$("#divToSlide").slideToggle("fast");
if ($(this).isToggled) { // <---- DOESN'T WORK -------
// do something when toggled
} else {
// do something different when not toggled
}
});
});
Let's say the window's location is on htt://stackoverflow.com/index.php, I want to remove an element in the index page with jQuery. This is what I have and it's not working:
$(document).ready(function() {
var location = window.location;
var locQuery = /index/i;
if (location.match(locQuery)) {
$('.someClass').removeClass();
}
});
I'm using prawn to generate pdfs, set up ala http://wiki.github.com/sandal/prawn/using-prawn-in-rails
I'd like to access my routes so I can generate links in my pdfs, but now I'm not in a template like I used to do with prawnto, so I don't have access to the named routes.
class MyPdf < Prawn::Document
def to_pdf
text root_path
end
end
How can I include my named routes?
Hello:
Can I do the following with SharePoint 2007:
1) Create lists (records) and document libraries with content that is in force for a certain amount of days and after that, they automatically expire? How?
2) When searching for words in a SharePoint site where there are lists and documents, SharePoint displays results similar to Google, would it be possible that Sharepoint tell me what documents are no longer current? How?
Thank you very much.
var html = "<div>"+title+"<br/>";
document.write(title.replace(/ /g,"-"));
html+= '<p><a href="go.aspx?title=' + title + '">Details<\/a></p></div>';
hi all,i want to replace title space with dash
How do i filter duplicates of two arrays before appending entries to a DOM node (#list)?
(function($) {
$(document).ready(function() {
var item_category1 = $('li.category1').get();
var item_category2 = $('li.category2').get();
$('#list')
.append( $(item_category1).clone() )
.append( $(item_category2).clone() );
});
})(jQuery);
Hi,
Hoping someone can assist but I am trying to access a div id="mnuGrp" that resides inside a child iframe(id="iframe2) from the parent window within the document.ready() section but unsure how to access this child div in the parent inorder to apply fadein and fadeout calls.
Any help would be appreciated.
Thanks.
I want to implement PDF viewer in my android application. My application has option of reading some document and i want to open those doc in PDF by default. My application .apk is ready and I have PDF viewer apk with me . What I want is to merge these 2 apk into a single project ? Can anyone help me.This will be really helpful.
Thanks in advance.
Regarda,
Praween
I'm putting together a Solution Architecture document for an enhancement we're adding to our site and it occurs to me that I've never formally illustrated a web service call before.
Is there a convention for how web service calls are illustrated on your garden-variety network diagram? Can anyone point me to examples or share something on Create.ly (or similar service)?
I have a xml document like this :
<Node1 attrib1="abc">
<node1_1>
<node1_1_1 attrib2 = "xyz" />
</ node1_1>
</Node1>
<Node2 />
Here <node2 /> is the node i want to remove since it has not children/elements nor any attributes.
Is it possible to load an html document using ajax and then perform a jquery selection on the loaded html?
I want to perform a search against a remote search server and then use the results to reformat an existing page.
function changeSize( fontsize ) {
var body = document.getElementById("body");
var font = fontsize + "-font";
body.className = font;
}
<input type="button" onclick="changeSize(small)" value="Small" />
Firefox console keeps saying that small is undefined. What am I doing wrong?