I need to insert an xml file into oracle. when I tried this with a clob, the OracleLob.write method's byte parameter needs even number of bytes. This works with you use Encoding.Unicode as the byte[] encoding, but I need to use utf8, because when I reencode to utf8 on the other receiving side...
Ok I fixed that, the [ ] were messing it up. So now that's returning a 0.
So I changed it a bit to this:
var re = /^onclick.*ils$/;
stringtomatch = "onclick=\" + "\"tooltip.show(r Details');\\";//\\" + "";
matched = stringtomatch.search(re)...
so this should work then:
var re = /^on[.]*ick$/;
stringtomatch = "onclick";
matched = stringtomatch.search(re);
But it's returning -1, is something off in it?
Here's a simpler one, let's say the string is "Hello this world"
And I want to match hel at the beginning and orld at the end.
What's the regex for that? But it has to contain both.
slight change
onclick=\"tooltip.show(
for the beginning and
');\"
for the end,
(the dom modifies it a bit when it copies, just realized it was doing that)
This is the code I'm using:
for ( i = 0; i < noOfRows; i++)
{
var re = new RegExp(tableBody.rows[i].innerHTML, /^onclick="tooltip\.show.*'\);\"$/ )
tableBody.rows[i].innerHTML = tableBody.rows[i].innerHTML.replace(re, "");
}
And...
First off, thanks for the quick reply. I hate regular expressions (I just started looking at them).
Second, is there a good tutorial site for them, I see tons on google., but which are good?
I've had this post in the c# section for a week and a half now, realized it should be here, and I don't know how to move a message, so please forgive the double post, and if there's a way to move messages, let me know and I'll do so.
My Pagemethod fires c# code which submits a record to a...
My Pagemethod fires c# code which submits a record to a database, this is working.
But I have some js code stored in an onsuccess method, which should alert that the record was submitted, but it's not firing.
Here's the js: (the data gathering part of the js code is omitted, it's not...
I have a few questions about using a linux server. I know that I can use samba to connect a windows desktop to the domain.
But as for email,
1) On Linux server, is there an equivalent email server application to Microsoft Exchange?
2) If so, can I import emails from exchange to that server...
I have some dropdowns, which are populated by ajax to prevent having to do a postback.
the problem is, I have one dropdown that populates another based on the first's selection.
This is working fine, and I can see the new entries in the second dropdown.
The problem is, if I do a view source...
Ok, got that working, but it seems that I need to submit through ajax instead.
I have some dropdowns, which are populated by ajax to prevent having to do a postback.
the problem is, I have one dropdown that populates another based on the first's selection.
This is working fine, and I can see...
I have an aspx page which uses pagemethods to update pulldowns without firing postbacks.
The problem is it changed the submit button's onclick event to:
onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("submitter", "", true, ""...
Is there anyway to prevent a gridview where the data is bound from the codebehind from being rendered inside div's? Or to remove the div tags after being rendered?
I'll post what I can in a moment, but it also seems that if I scroll the main window scrollbar, not the div scroll, the headers move with that as well (or rather stay still while the whole screen scrolls)
I have a gridview where I'm freezing the header row using
this.offsetParent.scrollTop-1. which is working.
However, in the gridview tablerows, I have an img tag, with a class, where the background image is an i. the img tag has a mouseover/mouseout events set to change the class, which in...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.