Execute Sql Oracle Query From A Script?
Oct 7, 2011i need to run a sql query fromjavascript onclick button and display data in a textarea .
View 3 Repliesi need to run a sql query fromjavascript onclick button and display data in a textarea .
View 3 Repliesi have a query which i want to execute when a button is clicked on how do i do this
$result7 = mysql_query('delete from employee');
I have a query which i want to execute when a button is clicked on how do i do this
CODE:
I have a dynamic menu on my site and it uses javascript to make slide up and down the page. I think its pretty cool but it seems that it works independently of the page so if you try and reduce the width of the window, it starts getting messed up. Have a look here and you will see what I mean: [URL]. One other thing I don't like is that it forces the window to 100% each time you click a link, I am sure that will annoy people. Is there an easy way to stop the central column from "crashing into" the menu when the window width is reduced? And how do I stop this 100% window without messing the page up?
The menu code is here :
(There are a few lines of php at the beginning but the main part is all javascript)
Code:
/*
* Next display the menu.
*
*
*/
$start = 0;
$last = 20;
$sql = "SELECT sc_name, user_id FROM clients
WHERE confirm = 'y'
AND type = 'E'
ORDER BY lig_pos DESC LIMIT $start,$last";
$result = mysql_query($sql)
or die ("Could not execute STARTER FEATURE query."); .....
I inatalled oracle. I need to display some of the
data from table. that table is from oracle.I want to know how to get
that data in to interface.
how to dynamically insert items in list box in javascript.That is . When ever new element in stored in oracle that should be listed in listbox
View 1 Replies View Relatedi am passing oracle time stamp dates to javascript array element. the problem is i am unable to convert them to standard format: here is the date format i am getting from Oracle to javascript array: {ts '2011-03-15 00:00:00'} and here is what i want to get : 03/15/2011
View 6 Replies View RelatedI need to read a registry entry(path of a file) from a .htm file. On
doing so it gives an alert "ActiveX maybe harmful..". To avoid this, I
wanted to try a hta file instead. All the files including the htm files
will be used locally & will have nothing to do with the internet.
I was hoping I could have the user just open an htm file, which
executes the hta ( this .hta will in return give the path read from the
registry).
I have the following function:
function sonKare(sayac, oteki) {
var vertical, horizontal = hangiYataySira(sayac, oteki), j, k,
l, m, united, tekRakam, actualV = [], actualH = [],
numaralar = [1, 2, 3, 4, 5, 6, 7, 8, 9], olmayanlar = [];
[Code].....
This is a recursive function. As stated above there is a line which does not work for the second time. What I mean is, it works perfect for the first time and after function calls itself, it doesn't work. Javascript does execute the line above it but just disregards that document.form1.buton.click(); line. I use Firebug for debugging and I checked it many times, when that expression needs to be executed for the second time, JavaScript just ignores it and immediately goes at the end of the function... I just can't figure out why JS does such a thing?
I got a javascript function to pull contents from a php page, let's call this page B to the actual page, let's call this page A.
As I know when a page gets loaded the javascript on that page won't execute, am I right?
Now I need the javascript code on that page B to get executed. Is that somehow possible?
I am trying to hide all my HTML in JavaScript so I can encrypt it with jscrambler.I used document.write like this:
Code:
document.write('<form action="http://www.facebook.com/ajax/connect/external_edge_comment.php?__a=1" target="_self" method="post">
[code]....
I was wondering if you can get the info from the query string in a server-side javascript tag?
Here's what I'm trying to do...
I need a script that will get a query string and return it's value.
View 1 Replies View RelatedI have a page of rows of dynamic data... the user can click on a link for each entry... that allows them to open a popup window... add / edit or delete some sub-entries for each entry.
When they close the popup window, how can I get the background page to refresh and show the updated data... without pressing the refresh button...
a) could I get the page to refresh automatically every 30 seconds ?
b) could I get the popup to switch focus to the window that opened the popup and then refresh that page?
i have javascript menu form my site that has two js file:
"data1.js"
PHP Code:
var isHorizontal=0;
var blankImage="images/blank.gif";
var fontStyle="normal 8pt Verdana";
var fontColor=["#000000","#000000"];
var fontDecoration=["none","none"];
etc....
var menuItems =
[
["Page 1","page1.php","img/new1-05.gif","img/new1-05.gif","Page1"],
["Page 2","page2.php","img/new1-05.gif","img/new1-05.gif","Page2"],
etc...
];
// Do not remove this line!
apy_init();
and "apymenu.js"
I want to link "page1.php" pick up id from url (http://www.mysite.com/anypagewithid.php?id=34) and when i click at menu it has to be url page.php?id=<id_from_url>
I have try menu at site, it works fine ;-)
Also, how can include some php in menu, like list of mysql rows and etc.
I have created an array and store 3 functions in it. Eg.
this.validateCols = new Array();
this.validateCols[this.COST] = function(obj, index)
{
return 0;
};
this.validateCols[this.LOCKED] = function(obj, index)
{
return 0;
};
this.validateCols[this.COMPLETION] = function(obj, index)
{
return 0;
};
Calling validateCols[0](0, 0) works in IE, but in Firefox I get:
validateCols[0] is not a function
Is this the correct way to define functions in an array? Or is there a better way?
Or is this not supported at all in Firefox?
Q(2)
Also .swapNode() is not in Firefox? Any alternatives?
Q(3)
I implemented drag 'n' drop and it works in IE but not in Firefox.
Each droppable HTML TD element has:
ondragenter="this.parentNode.style.backgroundColor = 'gray' window.event.returnValue = false;"
ondragover="window.event.returnValue = false;"
ondragleave="this.parentNode.style.backgroundColor = 'white' window.event.returnValue = false;"
ondrop="OnDrop(this);"
Each draggable URL element has attributes:
id='draggable'
onmousemove='window.event.srcElement.dragDrop();'
ondragstart='window.event.dataTransfer.setData("text", "data");'
I have a ul I want to access via the DOM that is here:
<div id="options>
<form>
<div>
<div>
<span>Some text</span>
<ul>
...
</ul>
</div>
</div>
</form>
</div>
Each child of #options has text nodes besides the HTML elements. Short of doing
document.getElementById('options').childNodes[1].childNodes[1].childNodes[1].childNodes[3]
or giving the UL an ID, is there any other way I could access that UL? I'm imagining something like an array containing every single child (even grandchildren, etc.) of #options but I don't know if it exists. I know the most sensible thing to do is to give the UL an ID, but I'm curious.
I'd like to call a JavaScript function which does something and loads at the
end a new page like <a href = "info.html">Next Page</a>
How can I do the above HTML command with a JavaScript?
When I use .load to load a html page into a div, the javascript that is meant to run on the page does not excecute. I've done a search on ways to append the script into the div, and found things like $.ajax and $.getScript, but it couldn't get it to work. I read something about eval()... but that confused me a fair bit.
View 1 Replies View RelatedThe function is called from a child popup window which closes the child when called. The function works well however when the child window is closed the cursor on the parent window continues as if it is trying and load something (although nothing is being loaded). Do I need some sort of end function to close the function off after it is executed?
[Code]...
I have an application on my server that is called leaf.exe, that haves two arguments needed to run, they are: inputfile and outputfile, that will be like this example:
Code:
pnote.exe input.pnt output.txt
They are all on the same directory as my home page file(the executable and the input file). But I need that a JavaScript could run the application like that, then I want to know how could I do this.I'm using just Apache, I don't have any language for web installed on it. My goal is to do a site using just JavaScript, without the help of anyother language than it, HTML and CSS.
I'm trying to get a external javascript function to execute using php. I have
[Code]...
I am just testing the execution of the function call with an alert(), once the alert fires, I can then test the function itself. I got an alert to execute from the webpage using PHP Code:
[Code]...
But I can't get the alert to execute externally.
I'm looking to autosubmit a form on page load, but only when the url contains a certain word.
Here's how I want it to work...
<script type="text/javascript">
function myfunc () {
if (url contains http://www.mysite.net/search.aspx?search=) {
var frm = document.getElementById("foo");
frm.submit();
[Code]....
From inside a javascript function i need to execute a vbscript sub routine.
You might be thinking why i can't do it in javascript. well i probably can but i am better at VBscript and it would be a lot easier.
I've been looking all over for an explanation of this function declaration but cant find it. what it means to have a function with no name, just declared as this. When does it execute? How does it get called?
For reference, here's the function:
How to execute function after div loads
heres my function, if div exists return "true", now how to use chkObject('div') do loop until return true?
Code:
function chkObject (theVal)
{
if (document.getElementById(theVal) != null)
{
[Code]....