mozilla object


 
Thread Tools Search this Thread
Top Forums Programming mozilla object
# 1  
Old 11-16-2006
mozilla object

hi this
i tried for getting url form mozilla window.
and also for getting mozilla object file.
is there any plz tell the way.
thanking u.
ramesh
# 2  
Old 11-16-2006
regarding URL

hi
i tried for getting url in mozilla
and used this commands

loading url google.com

open_uri_cb http://google.com/

load_started_cb

but noway from these

anybudy is there to help me plz

thanking u
ramesh
# 3  
Old 11-16-2006
mozilla

hi
i tried like this

main()
{
char *str;
str=system("/usr/bin/mozilla ","r");
printf("str= %s",str);
}

but i did n,t get the url
is anywat to this
thaks.
ramesh


}
# 4  
Old 11-16-2006
Please stop duplicating the posts. I have merged all the threads.

To get the URL there is not easy way out. This is what you have to do.

Go to ~/.mozilla/default/<some-random-string>/history.dat
Open the file, go the end and search for an url string.

This is what I have in my history.dat. The string in red is what you need to extract. www.unix.com was the last URL I visited.
Code:
<(4AE5=https://www.unix.com/)(4AE6=1163662659213668)(4AE7=www.unix.com)
  (4AE8
    =T$00h$00e$00 $00U$00N$00I$00X$00 $00F$00o$00r$00u$00m$00s$00 $00-$00 $00t\
$00h$00e$00 $00T$00o$00p$00 $00U$00N$00I$00X$00 $00&$00 $00L$00i$00n$00u$00x$00\
 $00Q$00&$00A$00 $00o$00n$00 $00t$00h$00e$00 $00W$00e$00b$00)>
{1:^80 {(k^81:c)(s=9)1 } [-92B(^82^4AE5)(^84^4AE6)(^85^4AE6)(^88^4AE7)
    (^8A=1)(^86=2)(^87^4AE8)]}
@$$}11}@

@$${12{@
@$$}12}@

# 5  
Old 11-16-2006
mozilla

hi vino
thank you verymuch. u'd given lot of information.
yes. ur , i find urls in that file.
and i've another doubt. how can i get the current url from
that file.
show me the way.
ram
# 6  
Old 11-16-2006
Please adhere to the rules And dont start a new thread. I have merged your other thread into this one.
# 7  
Old 11-16-2006
Quote:
Originally Posted by ramesh.jella
how can i get the current url from
that file.
show me the way.
ram
Remember I told you to go till the end of the history.dat and pick up the URL. Thats what you need to do. Parse the file. Keep a track on each URL you see till you hit the end of the file. The last URL you have is what you are looking for.

I dont have any boilerplate code at the moment to post. From what I can see, you need to detect lines starting with a '<' and then strings within (var=/some/url).
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Programming

How to initialize an object with another object of different class?

How to initialize an object of class say "A", with an object of type say "B". The following code give the error message "error: conversion from âAâ to non-scalar type âBâ requested" #include <iostream> using namespace std; class B; class A{ public: A() { cout <<"\nA()" << endl; } ... (1 Reply)
Discussion started by: techmonk
1 Replies

2. Solaris

How to install new Mozilla 3.5?

Yesterday I tried to install my mozilla firefox but when i want to see Readme #more README For information about installing, running and configuring Firefox including a list of known issues and troubleshooting information, refer to: Firefox web browser | Faster, more secure, & customizable... (10 Replies)
Discussion started by: solaris_user
10 Replies

3. AIX

mozilla installation

I am tryin to install Mozilla V1.7.13.1 on Power6 64 bit Blade JS12 server running aix 5.3 ML 11. ive installed the required rpm files. When i try to install Mozilla (downloaded from IBM site as Mozilla.base.tar.gz) . It always fails with the below msg. instal: Failed while executing the... (2 Replies)
Discussion started by: muzahed
2 Replies

4. UNIX for Dummies Questions & Answers

Object reference not set to an instance of an object

I am new to PHP and UNIX. I am using Apache to do my testing on a Windows Vista machine. I am getting this error when I am trying to connect to a web service. I did a search and did not see any posts that pertain to this. Here is my function: <?php function TRECSend($a, $b, $c, $d,... (0 Replies)
Discussion started by: EddiRae
0 Replies

5. Solaris

Mozilla, how to remove

I got this Mozilla and unzipped the package and installed on my server. Now I am told that this was a mistake and need to remove Mozilla. I know I can remove Mozilla with pkgrm but this unzipped file was apparently not installed this way. I believe the file was installed with the mozinstall script.... (8 Replies)
Discussion started by: bluridge
8 Replies

6. AIX

mozilla-firefox

i attempt to install mozilla...and after the installation finish i have failed that say: the following rpm image are required before mozilla.base.rte can be installed what to d? or how do i install the rpms? thanx..... (1 Reply)
Discussion started by: amitt74
1 Replies

7. Linux

Mozilla Navigator

I would like just to know where is mozilla navigator is installed under linux i.e mozilla navigator is installed in which directory? I think you (1 Reply)
Discussion started by: selim
1 Replies

8. UNIX for Dummies Questions & Answers

Does anyone use Mozilla Thunderbird

I'm using Mozilla Thunderbird for e-mail and it tells me cannot connect to mail.qs.com. Then it goes into SMTP Issues when I try to send e-mail out. Does anyone have any suggestions? (1 Reply)
Discussion started by: cnitadesigner
1 Replies

9. Linux

starting mozilla

every time I launch mozilla Im getiing this this error: Details: failed to execute child process "/root/mozilla" no such file or directory. (2 Replies)
Discussion started by: keliy1
2 Replies
Login or Register to Ask a Question