473,614 Members | 2,089 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Extracting query string info onMouseover and displaying information...

Hi everyone...
I am currently developing a streaming movie front-end for my companies'
intranet.
The script is done with PHP on the back-end and HTML and CSS for the
front-end.

Basically, the script displays the available videos in a list of links
and when the user clicks on the video, the script grabs the query
string information and concatinates the appropriate filename into a
variable which is used to start Windows Media Player.
This system works beautifully and everything was great until my boss
said to me "It'd be nice if we could have popup descriptions when the
user puts his/her mouse over the link."

So.
I need some code that will pull the filename out of the query string on
mouse over, then open a text file (on the web server) with that same
filename and echo it to the browser.

I know this system is begging for a database, but I'm trying to keep
this managable by my coworkers who aren't programmers and don't know
how to manipulate SQL.

Sep 27 '06 #1
1 2036
function ixParseURL(url)
{
var parse = function(x)
{
var paramArray = new Array();

var regex = /(?:\?|&)[a-z0-9]+=[^=&?]+/gi;
var splitter = /([^=?&]+)=([^=]+)/;

var results = regex.exec(x);
while(results != null)
{
var param = splitter.exec(r esults[0]);
paramArray[param[1].toLowerCase()] = param[2];

results = regex.exec(x);
}
return paramArray;
}
if(url)
{
return parse(url);
}
else
{
if(ixParseURL_c ache)
{
var ret = ixParseURL_cach e;
if(document.loc ation.hash.leng th != 0)
{
ret["hash"] = document.locati on.hash.slice(1 ,
document.locati on.hash.length) ;
}
return ret;
}
var ret = parse(document. location.search );
ixParseURL_cach e = ret;
if(document.loc ation.hash.leng th != 0)
ret["hash"] = document.locati on.hash.slice(1 ,
document.locati on.hash.length) ;
}
return ret;
}

You can use the preceeding method to parse the URL and get your
filename out. As far as opening a file on the web server and doing a
popup, youll need to make an Ajax request to do that.

Sep 27 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
19323
by: Fritz Switzer | last post by:
Can anyone provide a small snippet in C# that pulls out the Contacts in Outlook XP. I've seen a couple of examples in C++ and VB in previous newsgroup posts, but either the originals didn't work or my conversion skills are weak. And if I have to use tlbimp.exe what is the right file to use. Thanks for the help. -- Fritz
1
1529
by: shivers3000 | last post by:
Can someone explain why $displayResults will not query twice? Scripts Objective: to take a car's VIN retrieve the car info and display in nice rows Issue with Script: The while loop displays the first car with information but on the second loop it will does not run the query for $displayResults all though the $queryDisplayResults does change the car's Vehicle ID Number
5
2175
by: Astra | last post by:
Hi All Is there an ASP way of extracting the height and width of a swf file so that I can specify these dims when adding the whole OBJECT code to the web page? Thanks Robbie
0
8656
southoz
by: southoz | last post by:
Good ay all , I'm fairly new to access(a little over 5 weeks now). Since I'v started I have picked up a lot of useful information from forums such as this and in doing so will share that information with others. I have seen many request for information on mail merging an how to send data to word documents this is something I have put together with the answers given by others and I hope this will help a few newbies , I know there are easier ways...
7
1748
by: ldphill | last post by:
I am very new to C#. I need help with creating the string, concatenating the string and displaying the information on separate lines. Here is what I am doing: 1. Write this Application in C# 2. It is a Console Application. 3. Use “MileStones” as a Namespace. 4. You shall have two files: a. TestApp.cs b. Person.cs
4
4572
by: zion4ever | last post by:
Hello good people, Please bear with me as this is my first post and I am relative new to ASP. I do have VB6 experience. I have a form which enables users within our company to do an intranet reservation of available resources (laptops, beamers, etc). The MySql database queries are already in place, as is the ASP administration panel. The frontend that users will see however, still needs some work. I'm really close, but since I'm no...
14
3677
ddtpmyra
by: ddtpmyra | last post by:
Hi below is my script displaying all the information inside the table. Pupose: pupose of this php page is to display all the information on my table and have a check box at the last column that will allow the user to approved the member. Problem: I don't how to insert a checkbox on a loop condition. <?php
22
3230
by: sivadhanekula | last post by:
Hello Everyone A quick and direct question: I need a C/C++ program to extract the data from the database and the output should be in CSV "Comma Separated Value" format. Briefly: I will be given a database and my work is to extract a particular data from that whole database and should get a output in CSV format. The database given to me has 24 tables and I need to extract data from any one of the table and if I press the run button I should...
11
4547
by: Ebenezer | last post by:
Let's suppose I have some nodes in an XML file, with an URL attribute: <node url="mypage.php?name1=value1&foo=bar&foo2=bar2&name2=value0" /> <node url="myotherpage.php?name4=value4&foo=bar3&foo2=bar5&name2=value8" /> and so on. Let's suppose I want to retrieve this @url parameter, BUT ONLY with the values, in querystring, associated with "foo" and "foo2" (thus discarding name1, name2, name4 and every other different ones).
0
8130
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8627
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8579
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6088
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5540
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4127
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2568
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1747
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1425
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.