Thanks again,

I tried to install IETester/debugbar and the companion.js, and even
the MS Script Debugger, but apparently the developers of these tools
"forgot" how to write documentation? From what I can see debugbar
allows me to inspect the contents of the webpages, but I need to see
the code executing (like in FireBug) - I wonder how you guys get
anything done without it?

After installing Script Debugger from MS I was simply unable to locate
any good documentation what so ever on the MS site?? And after reading
the debugbar webpages several times I conclude that it is not possible
to put in breakpoint in the code?

Summing up, I would need to add console.log(whatever) to get some idea
of what is going on in my JS code?

Regards Per

On 30 Aug., 15:40, Balazs Endresz <[EMAIL PROTECTED]> wrote:
> Firebug lite seems to have some problems with ietab, but you can also
> use this:http://www.my-debugbar.com/wiki/IETester/HomePage
> Though it's pretty strange that \n search doesn't work for you, I
> tried it in IE 6 and 7, for me it works as it should.
>
> On Aug 30, 9:40 am, Asset <[EMAIL PROTECTED]> wrote:
>
> > Thanks Balazs
>
> > as you can see I try to do something very similar - with this code:
>
> > function nextStop(text) {
> >          var pos = text.length;
> >          var pos2 = text.indexOf(".");
> >          if (pos2 > 0 && pos >pos2) { pos = pos2 +
> > 1};                                       // lastPos is the netx
> > Sentence stats
> >          var pos2 = text.indexOf("!");
> >          if (pos2 > 0 && pos >pos2) { pos = pos2 + 1};
> >          var pos2 = text.indexOf("?");
> >          if (pos2 > 0 && pos >pos2) { pos = pos2 + 1};
> >          var pos2 = text.indexOf("\n");
> >          if (pos2 > 0 && pos >pos2) { pos = pos2};
>
> >          if (pos == 0) { pos = text.length };
>
> >    return pos;
>
> > }
>
> > I thus try to narrow down to a clean snip of text and replaces this
> > snip with var myX = x.replace(str,result.translation);
>
> > I would simply try to bypass any HTML, line-breaks etc in the final
> > code, but for some reason the replace seems to corrupted when this is
> > done in IE.
>
> > I found thishttp://www.w3schools.com/jsref/jsref_regexp_modifier_newline.asp
> > - that says that you need to set the \n like this:
>
> > var str = "Visit W3Schools.\n Learn JavaScript.";
> > var patt1 = /\n/;
> > var result = str.search(patt1);
> > document.write("Match at: " + result);
>
> > Changing my code to use patt1 and search still works fine in FF but
> > not in IE... strange....
>
> > Regards Per
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google AJAX API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-AJAX-Search-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to