|
Hmmm... basically I want to know how it works... lemme try to look into the links you gave
I was born intelligent Education ruined me!.
|
|
|
|
|
I have been working with multingual web sites for a while. The way I did (although I don't know if it is the best way) is as follows:
In the database you create more fileds of the same content for the different language. For example, if you have a table called PAGES and in the table you have the fields, PAGEID, PAGETITLE, PAGECONTENT you can change it to:
PAGEID, EN_PAGETITLE, AR_PAGETITLE, EN_PAGECONTENT, AR_PAGECONTENT
Where EN=English and AR=Arabic
Then you always have on the query string a value that holds the current language like this:
www.website.com/page.asp?pageID=1&lang=EN
Then when you build the SQL query in the ASP code you do this:
SELECT PAGEID, " & Request("lang") & "_PAGETITLE, " & Request("lang") & "_PAGECONTENT FROM PAGES WHERE PAGEID=1
and you can even switch the language at any page by just changing the querystring like this:
www.website.com/page.asp?pageID=1&lang=AR
which with the same SQL query will return the Arabic version of the page.
Hope I explained this clearly enough...
Regards,
|---------------|
| theJazzyBrain |
|---------------|
|
|
|
|
|
I did the same way, but with some chnges... the tables have differnt rows for each languages.. and the idea works fine....
I changed the meta tage content for the arabic as follows....
ARABIC -
ENGLISH -
And the fonts looks fine when it is seen from MS access. But when I show that in the web-site, it JUSt shows as ?????.
Any tag to be added to make the site show good with the arabic fonts from the ms-access? U can help me..
Thanks in advance!
I was born intelligent Education ruined me!.
|
|
|
|
|
I see what you mean...
That has to do with server settings.
I had the same problem with Greek.
I think you need to to add to the server Arabic language
Try this, it should work...
|---------------|
| theJazzyBrain |
|---------------|
|
|
|
|
|
I work with the site in local host... and the PC is installed with arabic language too... I am able to type arabic (I cant understand it though ), and so... arabic is installed in the PC.... is there anything more to be done for this?
I was born intelligent Education ruined me!.
|
|
|
|
|
From Control Panel -> Regional Options -> General tab...
Make sure that Arabic is checked on the LANGUAGE SETTINGS FOR THE SYSTEM
This is in win2000. It should be similiar on XP or win2000 Server
If this doesn't fix the problem... I don't know what else might be
|---------------|
| theJazzyBrain |
|---------------|
|
|
|
|
|
theJazzyBrain wrote:
If this doesn't fix the problem... I don't know what else might b
Oh dear.... I am helpless now.... your suggestion, was already tested by me....
I was born intelligent Education ruined me!.
|
|
|
|
|
I am very sorry, I dont know what else to suggest
But if I find anything I will let you know coz I work alot with English and Greek web sites.
|---------------|
| theJazzyBrain |
|---------------|
|
|
|
|
|
theJazzyBrain wrote:
But if I find anything I will let you know coz I work alot with English and Greek web sites.
That will be of great help... thanks...
I was born intelligent Education ruined me!.
|
|
|
|
|
If you dont mind.. can u send the contents of the < head > tag in your site... may be, that will give me an idea, if I am missing something there...
Thanks
I was born intelligent Education ruined me!.
|
|
|
|
|
Greetings.
I just wanted to know how i can get the ID of the last record in the Database using ASP
The most similar thing i have found is
objRS.open "SELECT Top 1 id, FROM links
And i have also found a record count, but that would give me trouble if a record is deleted.
Any help will be appreciated
Santiago
|
|
|
|
|
If the ID is an incrementing number you could get the last one by using this SQL statement:
SELECT MAX(ID) AS LAST_ID FROM LINKS
This will return a recordset with the max number in the field ID of the table LINKS and give it an alias of LAST_ID ...
objRS("LAST_ID")
Wally Atkins Newport News, VA, USA
|
|
|
|
|
I am new to COM. I have been trying to incorporate the WebBrowser control into an MFC program. I have been using as an example and article from MSDN -http://www.microsoft.com/mind/0798/webbrowser.asp.
In this example VBScript is used. I have been trying to use JavaScript instead. I am unable to change a value with a COM method when I pass a value from Javascript;
IN VBSCRIPT:
sub get_property_value_onclick()
i=window.external.get_propert(property_name.value, value)
if i<>0 then
property_value.value=value
MsgBox property_name.value & " = " & value, 0, "Successfully retrieved property"
else
MsgBox "Cound not find value for property '" & property_name.value & "'", 0 , ""
end if
end sub
In Javascript:
function get_property_value_onclick(namevalue,value)
{
var value = "test";
var i = window.external.get_property(property_name.value,value)
if (i != 0)
{
property_value.value=value;
var strMsg;
strMsg = "Successfully retrieved property:" + property_name.value + " = " + value ;
alert( strMsg);
}
else
{
var strMsg;
strMsg = "Could not retrieve" + property_name.value + " = " + value ;
alert( strMsg);
}
}
The COM Method:
HRESULT my_application::get_property(LCID lcid,
WORD wFlags,
DISPPARAMS* pdispparams,
VARIANT* pvarResult,
EXCEPINFO* pexcepinfo,
UINT* puArgErr)
{
if (wFlags & DISPATCH_METHOD)
{
if (pdispparams->cArgs!=2)
{
return DISP_E_BADPARAMCOUNT;
}
// force to string
VARIANT arg1;
VariantInit(&arg1);
HRESULT hr=VariantChangeType(&arg1,
&pdispparams->rgvarg[1],
0,
VT_BSTR);
if (FAILED(hr))
{
*puArgErr=1;
return hr;
}
string str;
com_util::bstr2string(arg1.bstrVal,str);
// try to find element
string2variant_map::iterator it=propertymap.find(str);
if (it==propertymap.end())
{
if (pvarResult)
{
V_VT(pvarResult) =VT_BOOL;
V_BOOL(pvarResult)=FALSE;
return S_OK;
}
if (!pexcepinfo)
{
return E_INVALIDARG;
}
// raise exception
memset(pexcepinfo,0,sizeof(EXCEPINFO));
pexcepinfo->wCode =1001;
pexcepinfo->bstrSource =SysAllocString(L"WebBrowser Demo");
pexcepinfo->bstrDescription =SysAllocString(L"No entry for the key");
return DISP_E_EXCEPTION;
}
hr = VariantCopy(pdispparams->rgvarg[0].pvarVal,&(*it).second);
if (pvarResult)
{
V_VT(pvarResult) =VT_BOOL;
V_BOOL(pvarResult)=TRUE;
}
return S_OK;
}
return DISP_E_MEMBERNOTFOUND;
}
The function VariantCopy(pdispparams->rgvarg[0].pvarVal,&(*it).second);
returns a bad varibale HRESULT. Bu tit works OK in VBSCRIPT. Any idea on how to solve this?
thanks,
RAM_MR
|
|
|
|
|
Greetings. My question is in regards to DSN connections. I need to set the browser permissions to RWD in order to create and update the database. However, this means that any person that knows the full address of the database can get access to it. Is there a way to prevent this other than setting a password to the database, as I have other files in that folder?
THank you
Santiago
Santiago Suárez R.
|
|
|
|
|
check this out:
http://www.canhost.ca/asp.html
regards,
Christian Toivola
|
|
|
|
|
PLEASE HELP IN FINDING OUT SOLUTION . A LOGIN PAGE WITH
CUSTOMER NAME ADDR PHONE NO AND EMAIL ID AND ON SUMISSION IT SHOULD LINK TO ANOTHER PAGE CONTAINING THE DETAILS OF THE CUSTOMER AND INTIMATING HIS SUCESSFUL REGISTRATION.
|
|
|
|
|
JOTD's are better shared in the lounge...
So few words, and yet so precise! Megan, you're a poet of mathematical accuracy! - Jörgen Sigvardsson
|
|
|
|
|
"Ask not for whom the bell tolls; It tolls for thee..."
|
|
|
|
|
You can be such an evil cow!
Nice!
"I have a strange ginger man living on my roof!"
"One of the most important things you learn from the internet is that there is no ‘them’ out there. It’s just an awful lot of ‘us’."
-Douglas Adams
Jonathan 'nonny' Newman
Homepage [www.nonny.com] [^]
|
|
|
|
|
Jonny Newman wrote:
You can be such an evil cow!
Nice!
So few words, and yet so precise! Megan, you're a poet of mathematical accuracy! - Jörgen Sigvardsson
|
|
|
|
|
http://www.sitepoint.com/articles/770/33
srikanth
|
|
|
|
|
What a JOTD???
"Two wrongs don't make a right, but three lefts do!" - Alex Barylski
|
|
|
|
|
Hockey wrote:
JOTD
Joke Of The Day.
"Ask not for whom the bell tolls; It tolls for thee..."
|
|
|
|
|
Ahh....
now it makes sense...
"Two wrongs don't make a right, but three lefts do!" - Alex Barylski
|
|
|
|
|
http://www.jsptut.com/Loginforms.jsp
http://www.jguru.com/faq/JSP
check out these sites u may get some useful info
|
|
|
|