I have a jquery tabs with jquery multiselect in my second tab. My problem is that the multiselect doesn't load the css and js if it's in second tab. If I put in in a first tab it works fine. What am I doing wrong?
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
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?
im trying to embed flash in my program by placing flash.ocx in my app's folder without having to register it. i found DirectCom.dll and with this code i can show the right version of flash.
but how do i show it on the form and load the movie?
Private Declare Function GetInstanceOld Lib "DirectCom" Alias "GETINSTANCE" (FName As String, ClassName As String) As Object
Dim ShockwaveFlash1 As Object
Set ShockwaveFlash1 = GetInstanceEx(StrPtr(App.Path & "\" & "flash.ocx"), StrPtr("ShockwaveFlash"), True)
MsgBox ShockwaveFlash1.FlashVersion
I have a JQuery dialog box on a page that calls something like this:
$.post("/MyController/MyAction", { myKey: key} //...
And this successfully gets here:
[HttpPost]
public ActionResult MyAction(int myKey)
{
//do some stuff
return RedirectToAction("AnotherAction");
}
The problem is that the RedirectToAction has no effect on the webbrowser. I am guessing this is because the JQuery post is kinda on a different 'tread' so it doesn't know where to send the response? How do I get the browser to load the new response?
Hi all,
In my local machine i have a scaffold that uses Jquery Validation plugin for the field's validation.
Now i want to add that to a fbml facebook application, but i'm haven't been able to load the jquery javascript and the jquery Validation plugin into the app, does anybody now how to do that? or maybe someone could suggest me a better way of doing validation inside a facebook application.
Thanks in Advance
Ernesto Carrión
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..
If I do --strip-debug or --strip-unneeded, I have the .ko that lists all function names with nm, if I do just strip foo.ko I have a kernel module that refuses to load.
Does anyone know a quick shortcut how to remove all symbols that are not needed for module loading so that people cannot reverse engineer the API:s as easily?
PS: For all you open source bigots; this is something that general public will never be using in any case so no need to turn the question into a GPL flame war.
Hello everybody.
I made a login component for my flex 4 application, and i load this component from my main flex application with:
<ns1:Login id="page_login" visible="true"></ns1:Login>
Now i want to change the visibility from true to false, from the login component. Is there a way to do this kind of interaction?
Thanx!
When I run my C++ program it crashes with this error.
* glibc detected ./load: double free or corruption (!prev):
0x0000000000c6ed50 **
I'm trying to track it down using cout statement but am finding it difficult. Could gdb make this easier? How is it done?
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
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?
i want to load grid view as header with roles tablle horizontally and first column datafields with page table vertically and for other column datafields with these two table interaction the access table
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 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 want to define a ref type variable, like this:
SomeType v=null
and this "SomeType" is defined in another assembly which is loaded at runtime with AppDomain.CurrentDomain.Load().
I know how to create an object of "SomeType", but how to just define a ref-type variable only?
Many thanks...
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?
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);
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
I have a situation where I need NHibernate to ignore its caches and just hit the database because the data has changed (another user on another computer has changed the data). How is this possible? So far I have had no luck. Get, Load, Linq query, doesn't matter. NHibernate is not getting the most recent data.
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