473,398 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Problem Processing JavaScript DHTML Function

I have a desktop software product (Rmsad.exe) that runs as a process in the background. Periodically, Rmsad.exe makes a call to a .php page (smfeed.php) on my server. One of the parameters it sends over is an URL to load in a DHTML window. Inside smfeed.php, I call a javascript function that displays the DHTML window:

Expand|Select|Wrap|Line Numbers
  1. var googlewin=dhtmlwindow.open("googlebox", "iframe", '<?php echo $outurl2; ?>', "Title text here",
  2. "width=<?php echo $winwd; ?>px,height=<?php echo $winht; ?>px,resize=1,scrolling=1,center=1", "recal")
This is a replacement for calling a basic javascript pop-up window. The script is a slightly expanded version of the one here:

http://www.dynamicdrive.com/dynamici...ndow/index.htm

Here's the layout of the smfeed.php page:

Expand|Select|Wrap|Line Numbers
  1. <?php
  2. //Php code that exist here gets properly executed
  3. //
  4. //
  5. ?>
  6.  
  7. <script type="text/javascript" src="deluxe-popup-window.js"></script>
  8. <script type="text/javascript">
  9. var googlewin=dhtmlwindow.open("googlebox", "iframe", '<?php echo $outurl2; ?>', "Title text here", "width=<?php echo $winwd; ?>px,height=<?php echo $winht; ?>px,resize=1,scrolling=1,center=1", "recal")
  10. </script>
  11.  
  12. <?php
  13. //Php code that exist here gets properly executed
  14. //
  15. //
  16. ?>
If you call the smfeed.php page directly, by manually entering it's URL into a browser address bar, the DHTML window script (dhtmlwindow.open) works fine. The DHTML window gets displayed. However, when smfeed.php is called from msad.exe, the window doesn't load at all. I tried replacing the dhtmlwindow.open statement with a very basic:

Expand|Select|Wrap|Line Numbers
  1. <script type="text/javascript">
  2. window.open ('http://www.bing.com')
  3. </script>
statement, just to test with a less complex javascript. It wouldn't load a window either. Again, both work if calling smfeed.php directly. There is php code before and after the javascript DHTML call. All the php code gets executed properly. So I know the entire smfeed.php page is getting processed.

Any ideas why the javascript functions won't work when contacted by Rmsad.exe?
Jun 21 '10 #1
3 1646
Dormilich
8,658 Expert Mod 8TB
It looks like your program doesn’t host a JavaScript environment (like e.g. V8, Nitro, SpiderMonkey, Rhino).
Jun 21 '10 #2
Thanks Dormilich. I had the Rmsad.exe app developed for me in C#. Any suggestions you can offer to make this work (or alternative strategy) that I can pass on to my developer?
Jun 21 '10 #3
Dormilich
8,658 Expert Mod 8TB
you (resp. your developer) would have to implement a JavaScript engine. you would end up with half a browser then.
Jun 21 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: mr_burns | last post by:
hi there, i would like a book that will explain concepts of javascript and dhtml instead of, for example, ten tutorials on how to do specific things in js or dhtml. ideally a book thats can...
2
by: ljlolel | last post by:
I'm posting this again because I did not explain myself well the first time, so the problem was not being addressed. I made the following page (...
0
by: Boricua | last post by:
I'm using ASP.NET 2.0 I got an imagebutton at the end of my form as a submit button. When the user clicks it the button becomes disabled and continues with the postback. This is what I got, ib...
3
by: Mr. Roper | last post by:
I'm pretty weak when it comes to Java script, hopefully someone will take mercy on my sole and explain this to me. How come on the following HTML page, when I have my first script tag commented...
0
by: Andy Roelandt | last post by:
Hi guys, I have a strange problem with the .print() function in JAVASCRIPT; this works perfectly in non-IE browsers (such as Mozilla) but not with IE. What happens is that when you click in a...
1
by: Andy Roelandt | last post by:
Andy Roelandt Newbie 1 Posts Today 12:32 PM #1 Printing problem with JAVASCRIPT + IE --------------------------------------------------------------------------------
1
by: satyanand | last post by:
hi, Can anybody give me the book and author name which have the combined code and description of "Javascript / DHTML / Ajax" . I need it very much. Thanks..... Satyanand Verma Software...
4
by: Waldy | last post by:
Hi there, I have a customer requirement to provide a web application without JavaScript. A function is being written to the HTML output on some pages. The function is called __doPostBack. How...
3
by: neovantage | last post by:
Hey All, I want to create 3d Scrollbar using javascript/dhtml in my static pages. My 3d scrollbar feel n look you can see from the attached image. I hope to have a solution from this great...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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...

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.