I am working on a new home for my browser.
When the src changes of the iframe (click search or something) I want to leave my site and go to where the iframe is going. How do I do this?
How can I destroy a dialog box after a certaing amount of seconds?????
This is my code:
<script type="text/javascript">
$(function() {
$(".dialog-message").dialog({
modal: true,
buttons: {
Ok: function() {
$(this).dialog('close');
}
}
});
});
</script>
When a button is clicked, it populates a combo box with all the databases you have created. Another button creates a new database. How do I refresh my combobox to add the newly added database?
Here's how I populate my combo box at the start:
rs.Open "show databases", conn
While Not rs.EOF
If rs!Database <> "information_schema" Then
Combo1.AddItem rs!Database
End If
rs.MoveNext
Wend
cmdOK.Enabled = False
cmdCancel.Enabled = False
frmLogin.Height = 3300
rs.Close
Hi,
I'd like to use HTML5 Canvas, but I'd like to use it in terms of shapes, texts and curves, able to attach traditional DOM events like onClick or drag-and-drop functions. Is there any Javascript library that is able to do that for me? I've seen that gwt-canvas is close to this approach, but haven't looked it in details.
Thanks,
Istvan
I want to, upon loading the page, store a cookie in the user's browser. Then, using AJAX, count the number of users with that cookie and send it off to a database row every 1 second or so. How is this accomplished?
Is it possible to write a function in an iphone app A that when you click on a button within that app A it will close app A and automaticall open up App B
I decided to store uploaded to servlet pictures in DB. But how to show them in browser (in particular div with css image-background style) without page reload?
In details: I have an full-AJAX web client that works with java servlet.
Thanks.
I have some text in Photoshop, which I want to use in the web page as image, to save the special font, which is not supported by the browser.
When I try to copy the text layer to a new document in Photoshop, so that I can save it as a separate image file, the text appears very bold, different from the text in the original file.
p.s.: I copy the text layer using: select layer - right click - duplicate layer - to new document;
Hi Guys,
We are creating a "widget" for our site and wanted to ensure we have got this right.
I realize this all relates to X-Browser permissions but little worried about how this works with like Cookies and permissions ?
Hello all,
I've got a horizontal menu on my website: http://www.alcmariavictrix.nl
When i browse it in small browsers (IPhone), the horizontal menu on top is screwed. What i want to perform is get that horizontal menu to the left when the browser can't display it all in one line.
Does anyone know how to do this?
example:
I'm aware of timing issues in Javascript, how its not exact/off by milliseconds etc, but I need something to at least attempt to do browser-based scheduling.
In terms of features, I'm thinking something along the lines of scheduling patterns described here: http://www.sauronsoftware.it/projects/cron4j/manual.php#p02
Anything out there? I've done google searches and haven't found any implementation worth nothing.
hey Guys,
I need to run a string of html through a regex function that checks to see if the attributes are closed in quotes, and if they aren't then close them.
for example i want
<img src=http://www.domain.com/image.gif border=0>
to turn into
<img src='http://www.domain.com/image.gif' border='0'>
Can anyone help me?
Hi,
I am executing the following javascript on my browser(firefox)
1.console.debug("Screen height = "+ screen.availHeight); //output 770
2.console.debug("Window Height ="+ $(window).height()); //output 210 (i am using jQuery as well)
What is the difference between the two? Are units of 770 is pixels and 210 is mm ?
Similarly, when I write $(document).height() and $(window).height() , there is a difference . What is the reason ?
For server side generated content, i18n support is usually pretty easy, for example, Java provides extensive i18n support.
But, these rich server side libraries are not available within the browser, which causes a problem when trying to format data client side (AJAX style.)
What javascript libraries and techniques are recommended for performing client side formatting and time-zone calculations? Also - beyond simple client side formatting, how can consistency be achieved when performing both server side and client side formatting?
I am trying to match what is before /../ but after / with regular expressions, but i want it to look back and stop at the first / I feel like I am close but it just looks at the first slash and then takes everything after it like... input is this:
this/is/a/./path/that/../includes/face/./stuff/../hat
and my regular expression is
#\/(.*)\.\.\/#
matching
/is/a/./path/that/../includes/face/./stuff/../
instead of just
that/../ and stuff/../
how can i adapt what i'm doing to work?
Currently there is discussion as to what are the pros and cons of having a single sql connection architecture.
To elaborate what we are discussing is, at application creation open a sql connection and at application close or error closing the sql connection. And not creating another connection at all, but using just that one to talk with the DB.
We are wondering what the community thinks.
Hi,
Whenever I try to load the following part in <head> tag on firfox browser, I get the message as $ is not define.
May I know the reason? I'm trying to load the jquery.js file before loading any custom script after CSS part.
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
In order to achieve this effect, I would like to know how I can make the WebBrowser to scroll up when new content is added to the HTML page?
"Allow more entries to be displayed in the view: When the user clicks more, additional entries should be displayed in addition to the ones which are already displayed. The code should cause the UI to scroll such that the first entry of the "more" set is on top".
I am using com.ibm.rcp.browser.service.WebBrowser which is similar to SWT WebBrowser.
I have an existing pdf file which needs to be updated with information which varies with each client. There are around 50 clients. I have to update the pdf with these. How can I acheive the same in C#. The pdf has to be shown in the browser (only IE) Is there a third party dll which could be used, which would parse the pdf. Then write to the pdf.
hello friends sorry for previous question actuly my question is i am having one button called btn[0] which is allready on browser when it is loaded when i click on btn[0] it will create another button element called btn[1] now btn[0]'s click event is disabled and when i click on btn[1] it will also generate another button which called btn[2] when i click on btn[2] it will generate another btn called btn[3] and so on
I am coding in Visual Basic. I am using a checkbox control. Now depending on its checked property I need to set/unset a bit column in a SQL Server database. Here's the code:
Try
conSQL.Open()
Dim cmd As New SqlCommand("update Student set send_mail = " + _
sendemailCheckBox.Checked.ToString + " where student_id = '" _
+ sidnolabel.Text + "'", conSQL)
cmd.ExecuteNonQuery()
Finally
conSQL.Close()
End Try
The send_mail attribute is of bit datatype. This code is not working.
How do I go about it?
I want an animation play only once in the browser. If any user seen the movie and if goes to any other page or refresh(F5) and then come back on the animation page then animation should not play from start. I want to play it from another frame.
I think it can be done by set cookie or somthing using javascript or php.
Please anybody help me. Thanks in advance. I will appreciate ,if some code help please
I need a lightbox plugin that is styled similar to FancyBox but will allow me to add text to the same white background as the image. Lightweight because I don't want many features as it's going to be added to an already heavy JS page. Preferably without Ajax features as I'll be handling this myself.
Therefore I'm ruling out the use of Thickbox, Fancybox and jQuery UI.
Basically I want the plugin to be a currently supported light-box jQuery plug-in that handles all the cross browser styling issues which I can then customise.
Iam working on Ubuntu.(Linux)
I want to display all .php pages to .html in the browser, using .htaccess.
Where all php files are in the folder 'test'
e.g one.php should be one.html like and all other files too
I was wondering if there is an implementation in R where it sorts a permutation of n numbers into the original 1...n sequence and provides the number of reversals needed. Eg an implementation of the "sorting by reversals" or "sorting by translocation" as outlined in this ppt.
Specifically, I have a permutation of a sequence of n elements, pi(n), and I want to figure out how close it is to the original sequence. The number of reversals seems a good metric.
Thanks!