473,492 Members | 4,301 Online
Bytes | Software Development & Data Engineering Community
Create 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 2031
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(results[0]);
paramArray[param[1].toLowerCase()] = param[2];

results = regex.exec(x);
}
return paramArray;
}
if(url)
{
return parse(url);
}
else
{
if(ixParseURL_cache)
{
var ret = ixParseURL_cache;
if(document.location.hash.length != 0)
{
ret["hash"] = document.location.hash.slice(1,
document.location.hash.length);
}
return ret;
}
var ret = parse(document.location.search);
ixParseURL_cache = ret;
if(document.location.hash.length != 0)
ret["hash"] = document.location.hash.slice(1,
document.location.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
19306
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...
1
1522
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...
5
2170
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
8638
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...
7
1743
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#...
4
4558
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...
14
3664
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...
22
3198
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...
11
4524
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...
0
7118
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7157
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,...
0
5452
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4886
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...
0
3087
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1397
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 ...
1
637
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
282
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...

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.